Skip to content

Instantly share code, notes, and snippets.

@pauloaapereira
Created May 16, 2021 16:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pauloaapereira/6d8bda6c415389177928f446e011b28c to your computer and use it in GitHub Desktop.
Save pauloaapereira/6d8bda6c415389177928f446e011b28c to your computer and use it in GitHub Desktop.
Android SOLID Error Handling
@Parcelize
class NotFoundError : ErrorView {
override fun setupView(binding: FragmentErrorBinding) {
binding.apply {
errorTitle.setText(R.string.key_error)
errorDescription.setText(R.string.key_not_found_error)
errorImage.setImageResource(R.drawable.ic_not_found)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment