Interface OnErrorHandler<EVENT_TYPE>

  • Type Parameters:
    EVENT_TYPE - the event type being published by the event bus
    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<EVENT_TYPE>
    Error Handler interface for the LocalEventBus
    • Method Detail

      • handle

        void handle​(EventHandler<EVENT_TYPE> failingSubscriber,
                    EVENT_TYPE event,
                    Exception exception)
        Will be called if a given 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