Enum Constant and Description |
---|
CLIENT_ERROR |
COLLECTION_NOT_FOUND |
INVALID_PARAMS |
RPC_ERROR |
SERVER_ERROR |
SUCCESS |
TIMEOUT |
Modifier and Type | Method and Description |
---|---|
static ErrorCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ErrorCode SUCCESS
public static final ErrorCode COLLECTION_NOT_FOUND
public static final ErrorCode SERVER_ERROR
public static final ErrorCode INVALID_PARAMS
public static final ErrorCode CLIENT_ERROR
public static final ErrorCode RPC_ERROR
public static final ErrorCode TIMEOUT
public static ErrorCode[] values()
for (ErrorCode c : ErrorCode.values()) System.out.println(c);
public static ErrorCode 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 null