on Exception
abstract fun onException(@NonNull() controller: EpoxyController, @NonNull() exception: RuntimeException)
Content copied to clipboard
This is called when recoverable exceptions happen at runtime. They can be ignored and Epoxywill recover, but you can override this to be aware of when they happen.
For example, you could choose to rethrow the exception in development builds, or log them inproduction.
Parameters
controller
The EpoxyController that the error occurred in.