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