epoxy-adapter / com.airbnb.epoxy / EpoxyController / ExceptionHandler / onException

onException

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

This is called when recoverable exceptions happen at runtime. They can be ignored and Epoxy will 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 in production.

Parameters

controller - EpoxyController: The EpoxyController that the error occurred in.