PropagatingErrorHandler
.@Deprecated public enum ThrowingListenerErrorHandler extends Enum<ThrowingListenerErrorHandler> implements ListenerInvocationErrorHandler
Enum Constant and Description |
---|
INSTANCE
Deprecated.
Singleton error handler instance that throws exceptions without modification
|
Modifier and Type | Method and Description |
---|---|
void |
onError(Exception exception,
EventMessage<?> event,
EventListener eventListener)
Deprecated.
Invoked after given
eventListener failed to handle given event . |
static ThrowingListenerErrorHandler |
valueOf(String name)
Deprecated.
Returns the enum constant of this type with the specified name.
|
static ThrowingListenerErrorHandler[] |
values()
Deprecated.
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ThrowingListenerErrorHandler INSTANCE
public static ThrowingListenerErrorHandler[] values()
for (ThrowingListenerErrorHandler c : ThrowingListenerErrorHandler.values()) System.out.println(c);
public static ThrowingListenerErrorHandler valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic void onError(Exception exception, EventMessage<?> event, EventListener eventListener) throws Exception
ListenerInvocationErrorHandler
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.onError
in interface ListenerInvocationErrorHandler
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.