Clio  develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
Errors.hpp File Reference
#include <boost/json/object.hpp>
#include <rpcspec/Errors.hpp>
#include <optional>
#include <string_view>
Include dependency graph for Errors.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  rpc::ClioErrorInfo
 Holds info about a particular ClioError. More...

Namespaces

namespace  rpc
 This namespace contains all the RPC logic and handlers.

Functions

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.

Variables

static Status rpc::gOk
 A globally available rpc::Status that represents a successful state.