onException

abstract fun onException(@NonNull() controller: EpoxyController, @NonNull() exception: RuntimeException)

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.