public interface ExceptionCallback
| Modifier and Type | Method and Description |
|---|---|
default void |
exception(Exception e,
Listener source,
Event<?,?> event)
Deprecated.
Since 3.0.0 - use
exception(FailedEventInvocation)
instead. |
default void |
exception(FailedEventInvocation invocation)
Callback method which is notified about exceptions that may occur during
event dispatching.
|
@Deprecated default void exception(Exception e, Listener source, Event<?,?> event)
exception(FailedEventInvocation)
instead.EventProvider if an instance of this interface has
been set as exception callback. This method is generally called within
the same thread in which the attempt to notify the listener has been
made.
Note: If this method throws any unchecked exceptions other than
AbortionException, they will be swallowed by the EventProvider
during error handling.
e - The exception which occurred during event dispatching.source - The event listener which caused the exception.event - The event which is currently being processed.AbortionException - can be thrown to make event dispatching
explicitly fail with an exception. No further listeners will
be notified and the caller of
dispatch will receive this exception.default void exception(FailedEventInvocation invocation)
EventProvider
if an instance of this interface has been set as exception callback. This
method is generally called within the same thread in which the attempt to
notify the listener has been made.
Note: If this method throws any unchecked exceptions other than
AbortionException, they will be swallowed by the EventProvider
during error handling.
Implementation note: the default implementation calls the deprecated method
exception(Exception, Listener, Event) for compatibility reasons.
invocation - FailedEventInvocation object which describes the failure.AbortionException - can be thrown to make event dispatching
explicitly fail with an exception. No further listeners will
be notified and the caller of
dispatch will receive this exception.Copyright © 2014–2015. All rights reserved.