@Stability.Internal public enum ErrorClasses extends java.lang.Enum<ErrorClasses>
Enum Constant and Description |
---|
FAIL_AMBIGUOUS |
FAIL_ATR_FULL |
FAIL_CAS_MISMATCH |
FAIL_DOC_ALREADY_EXISTS |
FAIL_DOC_NOT_FOUND |
FAIL_EXPIRY |
FAIL_HARD |
FAIL_OTHER |
FAIL_PATH_ALREADY_EXISTS |
FAIL_PATH_NOT_FOUND |
FAIL_TRANSIENT |
FAIL_WRITE_WRITE_CONFLICT |
TRANSACTION_OPERATION_FAILED |
Modifier and Type | Method and Description |
---|---|
static ErrorClasses |
classify(java.lang.Throwable err) |
static boolean |
isFailAmbiguous(java.lang.Throwable e) |
static boolean |
isFailHard(java.lang.Throwable e) |
static boolean |
isFailTransient(java.lang.Throwable e) |
static ErrorClasses |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ErrorClasses[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ErrorClasses TRANSACTION_OPERATION_FAILED
public static final ErrorClasses FAIL_TRANSIENT
public static final ErrorClasses FAIL_HARD
public static final ErrorClasses FAIL_OTHER
public static final ErrorClasses FAIL_AMBIGUOUS
public static final ErrorClasses FAIL_DOC_ALREADY_EXISTS
public static final ErrorClasses FAIL_DOC_NOT_FOUND
public static final ErrorClasses FAIL_PATH_ALREADY_EXISTS
public static final ErrorClasses FAIL_PATH_NOT_FOUND
public static final ErrorClasses FAIL_CAS_MISMATCH
public static final ErrorClasses FAIL_EXPIRY
public static final ErrorClasses FAIL_WRITE_WRITE_CONFLICT
public static final ErrorClasses FAIL_ATR_FULL
public static ErrorClasses[] values()
for (ErrorClasses c : ErrorClasses.values()) System.out.println(c);
public static ErrorClasses 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 nullpublic static ErrorClasses classify(java.lang.Throwable err)
public static boolean isFailTransient(java.lang.Throwable e)
public static boolean isFailHard(java.lang.Throwable e)
public static boolean isFailAmbiguous(java.lang.Throwable e)