public interface ExceptionHandler<T extends EventListener>
Modifier and Type | Field and Description |
---|---|
static ExceptionHandler |
RETHROW_EXCEPTION_HANDLER |
Modifier and Type | Method and Description |
---|---|
boolean |
handleException(T listener,
Throwable exception)
Handle an exception that occurred in an event listener.
|
static final ExceptionHandler RETHROW_EXCEPTION_HANDLER
boolean handleException(T listener, Throwable exception) throws Throwable
listener
- The listener that throw the exception.exception
- The thrown exception.true
, if the remaining listeners should be notified,
false
to cancel.Throwable
- Rethrowing or converting exceptions.