public enum ErrorStatus extends Enum<ErrorStatus>
| Enum Constant and Description | 
|---|
AUTHORIZATION_ERROR  | 
BAD_VALUE  | 
COMMIT_FAILED  | 
GEN_ERR  | 
INCONSISTENT_NAME  | 
INCONSISTENT_VALUE  | 
NO_ACCESS  | 
NO_CREATION  | 
NO_ERROR  | 
NO_SUCH_NAME  | 
NOT_WRITABLE  | 
READ_ONLY  | 
RESOURCE_UNAVAILABLE  | 
TOO_BIG  | 
UNDO_FAILED  | 
WRONG_ENCODING  | 
WRONG_LENGTH  | 
WRONG_TYPE  | 
WRONG_VALUE  | 
| Modifier and Type | Method and Description | 
|---|---|
static ErrorStatus | 
fromStatus(int status)  | 
abstract boolean | 
isFatal()
Whether or not this error status should be fatal (ie, throw an exception). 
 | 
abstract boolean | 
retry()
Whether or not a retry should be attempted upon receiving this error code. 
 | 
static ErrorStatus | 
valueOf(String name)
Returns the enum constant of this type with the specified name. 
 | 
static ErrorStatus[] | 
values()
Returns an array containing the constants of this enum type, in
the order they are declared. 
 | 
public static final ErrorStatus NO_ERROR
public static final ErrorStatus TOO_BIG
public static final ErrorStatus NO_SUCH_NAME
public static final ErrorStatus BAD_VALUE
public static final ErrorStatus READ_ONLY
public static final ErrorStatus GEN_ERR
public static final ErrorStatus NO_ACCESS
public static final ErrorStatus WRONG_TYPE
public static final ErrorStatus WRONG_LENGTH
public static final ErrorStatus WRONG_ENCODING
public static final ErrorStatus WRONG_VALUE
public static final ErrorStatus NO_CREATION
public static final ErrorStatus INCONSISTENT_VALUE
public static final ErrorStatus RESOURCE_UNAVAILABLE
public static final ErrorStatus COMMIT_FAILED
public static final ErrorStatus UNDO_FAILED
public static final ErrorStatus AUTHORIZATION_ERROR
public static final ErrorStatus NOT_WRITABLE
public static final ErrorStatus INCONSISTENT_NAME
public static ErrorStatus[] values()
for (ErrorStatus c : ErrorStatus.values()) System.out.println(c);
public static ErrorStatus 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 abstract boolean isFatal()
public abstract boolean retry()
public static ErrorStatus fromStatus(int status)
Copyright © 2020. All rights reserved.