Enum Class ListenerExceptionHandler.Result
java.lang.Object
java.lang.Enum<ListenerExceptionHandler.Result>
dev.siroshun.event4j.api.listener.ListenerExceptionHandler.Result
- All Implemented Interfaces:
Serializable,Comparable<ListenerExceptionHandler.Result>,Constable
- Enclosing interface:
- ListenerExceptionHandler<K,
E, O>
The operations that indicates what the
EventCaller should do next-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAListenerExceptionHandler.Resultthat indicates that theEventCallershould not post the event to subsequent listeners.AListenerExceptionHandler.Resultthat indicates that theEventCallershould post the event to subsequent listeners.AListenerExceptionHandler.Resultthat indicates thatEventCallershould re-throw an exception. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static ListenerExceptionHandler.Result[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BREAK
AListenerExceptionHandler.Resultthat indicates that theEventCallershould not post the event to subsequent listeners. -
CONTINUE
AListenerExceptionHandler.Resultthat indicates that theEventCallershould post the event to subsequent listeners. -
RETHROW
AListenerExceptionHandler.Resultthat indicates thatEventCallershould re-throw an exception.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-