@Stability.Internal public enum ErrorClass extends Enum<ErrorClass>
| 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 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.
|
public static final ErrorClass TRANSACTION_OPERATION_FAILED
public static final ErrorClass FAIL_TRANSIENT
public static final ErrorClass FAIL_HARD
public static final ErrorClass FAIL_OTHER
public static final ErrorClass FAIL_AMBIGUOUS
public static final ErrorClass FAIL_DOC_ALREADY_EXISTS
public static final ErrorClass FAIL_DOC_NOT_FOUND
public static final ErrorClass FAIL_PATH_ALREADY_EXISTS
public static final ErrorClass FAIL_PATH_NOT_FOUND
public static final ErrorClass FAIL_CAS_MISMATCH
public static final ErrorClass FAIL_EXPIRY
public static final ErrorClass FAIL_WRITE_WRITE_CONFLICT
public static final ErrorClass FAIL_ATR_FULL
public static ErrorClass[] values()
for (ErrorClass c : ErrorClass.values()) System.out.println(c);
public static ErrorClass 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 nullpublic static ErrorClass classify(Throwable err)
public static boolean isFailTransient(Throwable e)
public static boolean isFailHard(Throwable e)
public static boolean isFailAmbiguous(Throwable e)
Copyright © 2024 Couchbase, Inc.. All rights reserved.