public enum ErrorClassification extends java.lang.Enum<ErrorClassification>
Enum Constant and Description |
---|
RECOVERABLE
The classification of errors that will not interrupt the retry operation.
|
UNRECOVERABLE
The classification of errors that will interrupt the retry operation.
|
Modifier and Type | Field and Description |
---|---|
static java.util.function.Function<java.lang.Throwable,ErrorClassification> |
DEFAULT
Default error classification: non-fatal errors are recoverable, and fatal errors are not recoverable.
|
Modifier and Type | Method and Description |
---|---|
protected static boolean |
nonFatal(java.lang.Throwable throwable) |
static ErrorClassification |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ErrorClassification[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ErrorClassification UNRECOVERABLE
public static final ErrorClassification RECOVERABLE
public static final java.util.function.Function<java.lang.Throwable,ErrorClassification> DEFAULT
public static ErrorClassification[] values()
for (ErrorClassification c : ErrorClassification.values()) System.out.println(c);
public static ErrorClassification valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullprotected static boolean nonFatal(java.lang.Throwable throwable)