public enum JsonRpcErrorCode extends Enum<JsonRpcErrorCode> implements HasName
| Enum Constant and Description |
|---|
DB_UNAVAILABLE_CONNECTION_FAILURE
The server responded with DbUnavailableException, State= DbUnavailableState.ConnectionFailure.
|
DB_UNAVAILABLE_GENERAL_ERROR
The server responded with DbUnavailableException, State= DbUnavailableState.None.
|
DB_UNAVAILABLE_INITIALIZING
The server responded with DbUnavailableException, State= DbUnavailableState.Initializing.
|
DB_UNAVAILABLE_OPERATION_ABORTED
The server responded with DbUnavailableException, State= DbUnavailableState.OperationAborted.
|
DB_UNAVAILABLE_UNKNOWN_DATABASE
The server responded with DbUnavailableException, State= DbUnavailableState.UnknownDatabase.
|
GROUP_RELATION_VIOLATED_ERROR
The server responded with GroupRelationViolatedException.
|
INTERNAL_ERROR
Internal JSON-RPC error.
|
INTERNAL_SERVER_ERROR
Internal server error.
|
INVALID_CERTIFICATE_EXCEPTION
Invalid certificate error.
|
INVALID_PARAMS
Invalid method parameter(s).
|
INVALID_REQUEST
The JSON sent is not a valid Request object.
|
METHOD_NOT_FOUND
The method does not exist / is not available.
|
NONE
The default value.
|
PARSE_ERROR
Invalid JSON was received by the server.
|
UNKNOWN
Fallback when enumeration value is unknown.
|
| Modifier and Type | Method and Description |
|---|---|
static JsonRpcErrorCode |
getByCode(Integer code) |
int |
getCode() |
String |
getName() |
static JsonRpcErrorCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JsonRpcErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JsonRpcErrorCode UNKNOWN
public static final JsonRpcErrorCode PARSE_ERROR
public static final JsonRpcErrorCode INTERNAL_ERROR
public static final JsonRpcErrorCode INVALID_PARAMS
public static final JsonRpcErrorCode METHOD_NOT_FOUND
public static final JsonRpcErrorCode INVALID_REQUEST
public static final JsonRpcErrorCode GROUP_RELATION_VIOLATED_ERROR
public static final JsonRpcErrorCode DB_UNAVAILABLE_GENERAL_ERROR
public static final JsonRpcErrorCode DB_UNAVAILABLE_CONNECTION_FAILURE
public static final JsonRpcErrorCode DB_UNAVAILABLE_UNKNOWN_DATABASE
public static final JsonRpcErrorCode DB_UNAVAILABLE_INITIALIZING
public static final JsonRpcErrorCode DB_UNAVAILABLE_OPERATION_ABORTED
public static final JsonRpcErrorCode INVALID_CERTIFICATE_EXCEPTION
public static final JsonRpcErrorCode INTERNAL_SERVER_ERROR
public static final JsonRpcErrorCode NONE
public static JsonRpcErrorCode[] values()
for (JsonRpcErrorCode c : JsonRpcErrorCode.values()) System.out.println(c);
public static JsonRpcErrorCode 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 int getCode()
public static JsonRpcErrorCode getByCode(Integer code)
Copyright © 2023. All rights reserved.