Interface ErrorHandler

  • All Known Implementing Classes:
    AbstractErrorHandler, SimpleErrorHandler

    public interface ErrorHandler
    The exception handler for such Ressor activities like loading data from Source, translation of the loaded data, etc.
    • Method Detail

      • onSourceFailed

        void onSourceFailed​(java.lang.Throwable exception,
                            java.lang.Object service)
        Called when the Source failed to load given resource and threw an exception.
        Parameters:
        exception - an exception which was thrown by the source
        service - service un-proxied instance, can be null if no successful reload was done
      • onTranslateFailed

        void onTranslateFailed​(java.lang.Throwable exception,
                               LoadedResource resource,
                               java.lang.Object service)
        Called when the Source started returning data, but eventually some error in the given Translator occurred.
        Parameters:
        exception - an exception which was thrown
        resource - the resource
        service - service un-proxied instance, can be null if no successful reload was done