Enum ErrorClass
- java.lang.Object
-
- java.lang.Enum<ErrorClass>
-
- com.couchbase.client.core.transaction.error.internal.ErrorClass
-
- All Implemented Interfaces:
Serializable
,Comparable<ErrorClass>
@Internal public enum ErrorClass extends Enum<ErrorClass>
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ErrorClass
classify(Throwable err)
static boolean
isFailAmbiguous(Throwable e)
static boolean
isFailHard(Throwable e)
static boolean
isFailTransient(Throwable e)
static ErrorClass
valueOf(String name)
Returns the enum constant of this type with the specified name.static ErrorClass[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TRANSACTION_OPERATION_FAILED
public static final ErrorClass TRANSACTION_OPERATION_FAILED
-
FAIL_TRANSIENT
public static final ErrorClass FAIL_TRANSIENT
-
FAIL_HARD
public static final ErrorClass FAIL_HARD
-
FAIL_OTHER
public static final ErrorClass FAIL_OTHER
-
FAIL_AMBIGUOUS
public static final ErrorClass FAIL_AMBIGUOUS
-
FAIL_DOC_ALREADY_EXISTS
public static final ErrorClass FAIL_DOC_ALREADY_EXISTS
-
FAIL_DOC_NOT_FOUND
public static final ErrorClass FAIL_DOC_NOT_FOUND
-
FAIL_PATH_ALREADY_EXISTS
public static final ErrorClass FAIL_PATH_ALREADY_EXISTS
-
FAIL_PATH_NOT_FOUND
public static final ErrorClass FAIL_PATH_NOT_FOUND
-
FAIL_CAS_MISMATCH
public static final ErrorClass FAIL_CAS_MISMATCH
-
FAIL_EXPIRY
public static final ErrorClass FAIL_EXPIRY
-
FAIL_WRITE_WRITE_CONFLICT
public static final ErrorClass FAIL_WRITE_WRITE_CONFLICT
-
FAIL_ATR_FULL
public static final ErrorClass FAIL_ATR_FULL
-
-
Method Detail
-
values
public static ErrorClass[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ErrorClass c : ErrorClass.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ErrorClass valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
classify
public static ErrorClass classify(Throwable err)
-
isFailTransient
public static boolean isFailTransient(Throwable e)
-
isFailHard
public static boolean isFailHard(Throwable e)
-
isFailAmbiguous
public static boolean isFailAmbiguous(Throwable e)
-
-