Package 

Interface EpoxyController.ExceptionHandler

    • Method Summary

      Modifier and Type Method Description
      abstract void onException(@NonNull() EpoxyController controller, @NonNull() RuntimeException exception) This is called when recoverable exceptions happen at runtime.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.