JSON RPC
JSON-RPC 2.0 library for C++
Error Codes

Error codes defined by the JSON-RPC 2.0 specification. More...

Variables

static constexpr int wwa::json_rpc::exception::INTERNAL_ERROR = -32603
 Internal JSON-RPC error.
 
static constexpr int wwa::json_rpc::exception::INVALID_PARAMS = -32602
 Invalid method parameter(s).
 
static constexpr int wwa::json_rpc::exception::INVALID_REQUEST = -32600
 The JSON sent is not a valid Request object.
 
static constexpr int wwa::json_rpc::exception::METHOD_NOT_FOUND = -32601
 The method does not exist or is not available.
 
static constexpr int wwa::json_rpc::exception::PARSE_ERROR = -32700
 Invalid JSON was received by the server.
 

Detailed Description

Error codes defined by the JSON-RPC 2.0 specification.

See also
https://www.jsonrpc.org/specification#error_object

Variable Documentation

◆ INTERNAL_ERROR

int wwa::json_rpc::exception::INTERNAL_ERROR = -32603
staticconstexpr

Internal JSON-RPC error.

Definition at line 113 of file exception.h.

◆ INVALID_PARAMS

int wwa::json_rpc::exception::INVALID_PARAMS = -32602
staticconstexpr

Invalid method parameter(s).

Definition at line 108 of file exception.h.

◆ INVALID_REQUEST

int wwa::json_rpc::exception::INVALID_REQUEST = -32600
staticconstexpr

The JSON sent is not a valid Request object.

Definition at line 98 of file exception.h.

◆ METHOD_NOT_FOUND

int wwa::json_rpc::exception::METHOD_NOT_FOUND = -32601
staticconstexpr

The method does not exist or is not available.

Definition at line 103 of file exception.h.

◆ PARSE_ERROR

int wwa::json_rpc::exception::PARSE_ERROR = -32700
staticconstexpr

Invalid JSON was received by the server.

An error occurred on the server while parsing the JSON text.

Definition at line 93 of file exception.h.