Package org.forgerock.openig.mcp.jsonrpc
Enum Class JsonRpcResponse.JsonRpcError.JsonRpcErrorCode
java.lang.Object
java.lang.Enum<JsonRpcResponse.JsonRpcError.JsonRpcErrorCode>
org.forgerock.openig.mcp.jsonrpc.JsonRpcResponse.JsonRpcError.JsonRpcErrorCode
- All Implemented Interfaces:
Serializable,Comparable<JsonRpcResponse.JsonRpcError.JsonRpcErrorCode>,Constable
- Enclosing class:
JsonRpcResponse.JsonRpcError
public static enum JsonRpcResponse.JsonRpcError.JsonRpcErrorCode
extends Enum<JsonRpcResponse.JsonRpcError.JsonRpcErrorCode>
Standard JSON-RPC error codes.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionInternal JSON-RPC error.Invalid method parameter(s).The JSON sent is not a valid Request object.The method does not exist / is not available.Invalid JSON was received by the server. -
Method Summary
-
Enum Constant Details
-
PARSE_ERROR
Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text. -
INVALID_REQUEST
The JSON sent is not a valid Request object. -
METHOD_NOT_FOUND
The method does not exist / is not available. -
INVALID_PARAMS
Invalid method parameter(s). -
INTERNAL_ERROR
Internal JSON-RPC error.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
code
public int code()Returns the error code numeric value.- Returns:
- the error code numeric value
-