error_code library

Constants

INTERNAL_ERROR → const int
An internal JSON-RPC error.
-32603
INVALID_PARAMS → const int
An error code indicating that the request parameters are invalid for the requested method.
-32602
INVALID_REQUEST → const int
An error code indicating that the request JSON was invalid according to the JSON-RPC 2.0 spec.
-32600
METHOD_NOT_FOUND → const int
An error code indicating that the requested method does not exist or is unavailable.
-32601
PARSE_ERROR → const int
Error codes defined in the JSON-RPC 2.0 specificiation. [...]
-32700
SERVER_ERROR → const int
An unexpected error occurred on the server. [...]
-32000

Functions

name(int errorCode) String
Returns a human-readable name for errorCode if it's one specified by the JSON-RPC 2.0 spec. [...]