public enum ExceptionCode extends java.lang.Enum<ExceptionCode>
Enum Constant and Description |
---|
ALREADY_EXISTS |
BAD_CREDENTIALS |
CONFIG_ERROR |
INVALID |
IS_BOOTSTRAPPING |
OVERLOADED |
PROTOCOL_ERROR |
READ_TIMEOUT |
SERVER_ERROR |
SYNTAX_ERROR |
TRUNCATE_ERROR |
UNAUTHORIZED |
UNAVAILABLE |
UNPREPARED |
WRITE_TIMEOUT |
Modifier and Type | Field and Description |
---|---|
int |
value |
Modifier and Type | Method and Description |
---|---|
static ExceptionCode |
fromValue(int value) |
static ExceptionCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ExceptionCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ExceptionCode SERVER_ERROR
public static final ExceptionCode PROTOCOL_ERROR
public static final ExceptionCode BAD_CREDENTIALS
public static final ExceptionCode UNAVAILABLE
public static final ExceptionCode OVERLOADED
public static final ExceptionCode IS_BOOTSTRAPPING
public static final ExceptionCode TRUNCATE_ERROR
public static final ExceptionCode WRITE_TIMEOUT
public static final ExceptionCode READ_TIMEOUT
public static final ExceptionCode SYNTAX_ERROR
public static final ExceptionCode UNAUTHORIZED
public static final ExceptionCode INVALID
public static final ExceptionCode CONFIG_ERROR
public static final ExceptionCode ALREADY_EXISTS
public static final ExceptionCode UNPREPARED
public static ExceptionCode[] values()
for (ExceptionCode c : ExceptionCode.values()) System.out.println(c);
public static ExceptionCode 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 ExceptionCode fromValue(int value)
Copyright © 2013 The Apache Software Foundation