|
Clio
develop
The XRP Ledger API server.
|
A status returned from any RPC handler. More...
#include <Errors.hpp>
Public Member Functions | |
| Status (CombinedError code) | |
| Construct a new Status object. | |
| Status (CombinedError code, boost::json::object &&extraInfo) | |
| Construct a new Status object. | |
| Status (std::string message) | |
| Construct a new Status object with a custom message. | |
| Status (CombinedError code, std::string message) | |
| Construct a new Status object. | |
| Status (CombinedError code, std::string error, std::string message) | |
| Construct a new Status object. | |
| bool | operator== (Status const &other) const =default |
| operator bool () const | |
| Check if the status is not OK. | |
| bool | operator== (RippledError other) const |
| Returns true if the rpc::Status contains the desired rpc::RippledError. | |
| bool | operator== (ClioError other) const |
| Returns true if the Status contains the desired ClioError. | |
Public Attributes | |
| CombinedError | code = RippledError::rpcSUCCESS |
| std::string | error |
| std::string | message |
| std::optional< boost::json::object > | extraInfo |
Friends | |
| std::ostream & | operator<< (std::ostream &stream, Status const &status) |
| Custom output stream for Status. | |
A status returned from any RPC handler.
|
inline |
Construct a new Status object.
| code | The error code |
|
inline |
Construct a new Status object.
| code | The error code |
| extraInfo | The extra info |
|
inlineexplicit |
Construct a new Status object with a custom message.
| message | The message |
|
inline |
Construct a new Status object.
| code | The error code |
| message | The message |
|
inline |
Construct a new Status object.
| code | The error code |
| error | The error |
| message | The message |
|
inline |
Check if the status is not OK.
|
inline |
Returns true if the Status contains the desired ClioError.
| other | The RippledError to match |
|
inline |
Returns true if the rpc::Status contains the desired rpc::RippledError.
| other | The rpc::RippledError to match |
|
friend |