public static enum JsonRpcError.ErrorCode extends java.lang.Enum<JsonRpcError.ErrorCode>
| Enum Constant and Description |
|---|
INTERNAL_ERROR |
INVALID_PARAMS |
INVALID_REQUEST |
METHOD_NOT_FOUND |
PARSER_ERROR |
| Modifier and Type | Method and Description |
|---|---|
int |
getProtocolValue() |
static JsonRpcError.ErrorCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JsonRpcError.ErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JsonRpcError.ErrorCode PARSER_ERROR
public static final JsonRpcError.ErrorCode INVALID_REQUEST
public static final JsonRpcError.ErrorCode METHOD_NOT_FOUND
public static final JsonRpcError.ErrorCode INVALID_PARAMS
public static final JsonRpcError.ErrorCode INTERNAL_ERROR
public static JsonRpcError.ErrorCode[] values()
for (JsonRpcError.ErrorCode c : JsonRpcError.ErrorCode.values()) System.out.println(c);
public static JsonRpcError.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 nullpublic int getProtocolValue()