public enum ThrowingListenerErrorHandler extends Enum<ThrowingListenerErrorHandler> implements ListenerInvocationErrorHandler
| Enum Constant and Description | 
|---|
| INSTANCESingleton error handler instance that throws exceptions without modification | 
| Modifier and Type | Method and Description | 
|---|---|
| void | onError(Exception exception,
       EventMessage<?> event,
       EventListener eventListener)Invoked after given  eventListenerfailed to handle givenevent. | 
| static ThrowingListenerErrorHandler | valueOf(String name)Returns the enum constant of this type with the specified name. | 
| static ThrowingListenerErrorHandler[] | values()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
ListenerInvocationErrorHandlereventListener 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 ListenerInvocationErrorHandlerexception - 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–2017. All rights reserved.