-
public interface EpoxyController.ExceptionHandler
-
-
Method Summary
Modifier and Type Method Description abstract voidonException(@NonNull() EpoxyController controller, @NonNull() RuntimeException exception)This is called when recoverable exceptions happen at runtime. -
-
Method Detail
-
onException
abstract void onException(@NonNull() EpoxyController controller, @NonNull() RuntimeException exception)
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.
-
-
-
-