JSON RPC
JSON-RPC 2.0 library for C++
|
Contains the definition of the JSON RPC Exception class. More...
#include <exception>
#include <string>
#include <string_view>
#include <nlohmann/json.hpp>
#include "export.h"
Go to the source code of this file.
Classes | |
class | wwa::json_rpc::exception |
JSON RPC Exception class. More... | |
Namespaces | |
namespace | wwa |
namespace | wwa::json_rpc |
Library namespace. | |
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. | |
Contains the definition of the JSON RPC Exception class.
Definition in file exception.h.