Interface EventBus.EventExceptionHandler

  • Enclosing interface:
    EventBus<E>
    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 static interface EventBus.EventExceptionHandler
    An event exception handler.
    Since:
    1.0.0
    • Method Detail

      • eventExceptionCaught

        <E> void eventExceptionCaught​(@NotNull
                                      @NotNull EventSubscription<? super E> subscription,
                                      @NotNull
                                      E event,
                                      @NotNull
                                      @NotNull Throwable throwable)
        Handles a caught exception.
        Type Parameters:
        E - the event type
        Parameters:
        subscription - the event subscription
        event - the event
        throwable - the exception
        Since:
        1.0.0