error_code library

Constants

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

Functions

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