#include <boost/json/object.hpp>
#include <rpcspec/Errors.hpp>
#include <optional>
#include <string_view>
Go to the source code of this file.
|
| namespace | rpc |
| | This namespace contains all the RPC logic and handlers.
|
|
| ClioErrorInfo const & | rpc::getErrorInfo (ClioError code) |
| | Get the error info object from an clio-specific error code.
|
| boost::json::object | rpc::makeError (Status const &status) |
| | Generate JSON from a rpc::Status.
|
| boost::json::object | rpc::makeError (RippledError err, std::optional< std::string_view > customError=std::nullopt, std::optional< std::string_view > customMessage=std::nullopt) |
| | Generate JSON from a rpc::RippledError.
|
| boost::json::object | rpc::makeError (ClioError err, std::optional< std::string_view > customError=std::nullopt, std::optional< std::string_view > customMessage=std::nullopt) |
| | Generate JSON from a rpc::ClioError.
|
|
|
static Status | rpc::gOk |
| | A globally available rpc::Status that represents a successful state.
|