Interface OnErrorHandler

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface OnErrorHandler
    Error Handler interface for the LocalEventBus's asynchronous event handler failures
    • Method Detail

      • handle

        void handle​(EventHandler failingSubscriber,
                    Object event,
                    Exception exception)
        Will be called if a given asynchronous consumer/subscriber fails to handle a message
        Parameters:
        failingSubscriber - the subscriber instance that failed
        event - the event the subscriber failed to handle
        exception - the exception thrown by the failingSubscriber