public static enum JsonRpc20Response.Error.ErrorCode extends java.lang.Enum<JsonRpc20Response.Error.ErrorCode>
| Enum Constant and Description |
|---|
FAILURE_RESPONSE
Failure response error code.
|
INTERNAL_ERROR
Internal error error code.
|
INVALID_JSON_REQUEST
Invalid json request error code.
|
INVALID_PARAMS
Invalid params error code.
|
IO_ERROR
Io error error code.
|
METHOD_NOT_FOUND
Method not found error code.
|
PARSE_ERROR
Parse error error code.
|
PROCEDURE_IS_METHOD
Procedure is method error code.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCode()
Gets code.
|
java.lang.String |
toString() |
static JsonRpc20Response.Error.ErrorCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JsonRpc20Response.Error.ErrorCode |
valueOfCode(int code)
Value of code error code.
|
static JsonRpc20Response.Error.ErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JsonRpc20Response.Error.ErrorCode PARSE_ERROR
public static final JsonRpc20Response.Error.ErrorCode INVALID_JSON_REQUEST
public static final JsonRpc20Response.Error.ErrorCode METHOD_NOT_FOUND
public static final JsonRpc20Response.Error.ErrorCode INVALID_PARAMS
public static final JsonRpc20Response.Error.ErrorCode INTERNAL_ERROR
public static final JsonRpc20Response.Error.ErrorCode PROCEDURE_IS_METHOD
public static final JsonRpc20Response.Error.ErrorCode FAILURE_RESPONSE
public static final JsonRpc20Response.Error.ErrorCode IO_ERROR
public static JsonRpc20Response.Error.ErrorCode[] values()
for (JsonRpc20Response.Error.ErrorCode c : JsonRpc20Response.Error.ErrorCode.values()) System.out.println(c);
public static JsonRpc20Response.Error.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 getCode()
public static JsonRpc20Response.Error.ErrorCode valueOfCode(int code)
code - the codepublic java.lang.String toString()
toString in class java.lang.Enum<JsonRpc20Response.Error.ErrorCode>