public interface ListenerInvocationErrorHandler
EventListener
handling an event.Modifier and Type | Method and Description |
---|---|
void |
onError(Exception exception,
EventMessage<?> event,
EventListener eventListener)
Invoked after given
eventListener failed to handle given event . |
void onError(Exception exception, EventMessage<?> event, EventListener eventListener) throws Exception
eventListener
failed to handle given event
. Implementations have a
choice of options for how to continue:
EventListener.handle(EventMessage)
on the eventListener once or multiple times.exception
- The exception thrown by the given eventListenerevent
- The event that triggered the exceptioneventListener
- The listener that failed to handle given eventException
- To stop further handling of the eventCopyright © 2010–2018. All rights reserved.