public enum HandlerResult extends Enum<HandlerResult>
ErrorHandler
.Enum Constant and Description |
---|
ABORT
Signals to the connector that the given
ErrorHandler determined that the given failure scenario
is grounds to abort the job. |
HANDLED
Signals to the connector that the given
ErrorHandler was successfully able to handle the failure
scenario, either by swallowing the failure, persisting the operation for examination, or attempting to
retry the operation. |
PASS
Signals to the connector that the given
ErrorHandler was unable to handle the failure scenario. |
Modifier and Type | Method and Description |
---|---|
static HandlerResult |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HandlerResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HandlerResult HANDLED
ErrorHandler
was successfully able to handle the failure
scenario, either by swallowing the failure, persisting the operation for examination, or attempting to
retry the operation. In this case, the handling for this failure instance is stopped and no further handlers
in the chain will be called.public static final HandlerResult PASS
ErrorHandler
was unable to handle the failure scenario.
In this case, the failure information is passed on to the next configured handler in the chain.public static final HandlerResult ABORT
ErrorHandler
determined that the given failure scenario
is grounds to abort the job. In this case, the original error information will be extracted and thrown
with no further handlers in the chain being called.public static HandlerResult[] values()
for (HandlerResult c : HandlerResult.values()) System.out.println(c);
public static HandlerResult 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 null