- All Implemented Interfaces:
Serializable
,Comparable<ErrorHandler.Result>
,Constable
- Enclosing interface:
ErrorHandler
The constants of this enumerated type describe the various types of actions that can be
performed by an error handler in newsletters to a throwable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIgnores an error that was thrown by the socketDisconnects from the current session without deleting itDeletes the current sessionDisconnects from the current session without deleting it and reconnects to itDeletes the current session and creates a new one instantly -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorHandler.Result
Returns the enum constant of this class with the specified name.static ErrorHandler.Result[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DISCARD
Ignores an error that was thrown by the socket -
RESTORE
Deletes the current session and creates a new one instantly -
DISCONNECT
Disconnects from the current session without deleting it -
RECONNECT
Disconnects from the current session without deleting it and reconnects to it -
LOG_OUT
Deletes the current session
-
-
Constructor Details
-
Result
private Result()
-
-
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
-