JSON RPC
JSON-RPC 2.0 library for C++
|
Error messages used by the library. These constants can be useful in unit tests. More...
Variables | |
static constexpr std::string_view | wwa::json_rpc::err_bad_id_type = "ID must be either a number, a string, or null" |
Error message for when the ID is not a number, a string, or null. | |
static constexpr std::string_view | wwa::json_rpc::err_bad_params_type = "Parameters must be either an array or an object or omitted" |
Error message for when the parameters are not an array or an object. | |
static constexpr std::string_view | wwa::json_rpc::err_empty_batch = "Empty batch request" |
Error message for when the batch request is empty. | |
static constexpr std::string_view | wwa::json_rpc::err_empty_method = "Method cannot be empty" |
Error message for when the method is empty. | |
static constexpr std::string_view | wwa::json_rpc::err_invalid_params_passed_to_method = "Invalid parameters passed to method" |
Error message for when the parameters passed to the method are not correct. | |
static constexpr std::string_view | wwa::json_rpc::err_method_not_found = "Method not found" |
Error message for when the method is not found. | |
static constexpr std::string_view | wwa::json_rpc::err_not_jsonrpc_2_0_request = "Not a JSON-RPC 2.0 request" |
Error message for when the request is not a JSON-RPC 2.0 request. | |
Error messages used by the library. These constants can be useful in unit tests.
|
staticconstexpr |
Error message for when the ID is not a number, a string, or null.
> An identifier established by the Client that MUST contain a String, Number, or NULL value if included.
Definition at line 63 of file exception.h.
|
staticconstexpr |
Error message for when the parameters are not an array or an object.
Definition at line 55 of file exception.h.
|
staticconstexpr |
Error message for when the batch request is empty.
Definition at line 70 of file exception.h.
|
staticconstexpr |
Error message for when the method is empty.
Definition at line 49 of file exception.h.
|
staticconstexpr |
Error message for when the parameters passed to the method are not correct.
Definition at line 37 of file exception.h.
|
staticconstexpr |
Error message for when the method is not found.
Definition at line 43 of file exception.h.
|
staticconstexpr |
Error message for when the request is not a JSON-RPC 2.0 request.
> jsonrpc
: A String specifying the version of the JSON-RPC protocol. MUST be exactly "2.0".
Definition at line 31 of file exception.h.