xrpld
Loading...
Searching...
No Matches
xrpl::RPC::ErrorInfo Struct Reference

Maps an rpc error code to its token, default message, and HTTP status. More...

#include <ErrorCodes.h>

Collaboration diagram for xrpl::RPC::ErrorInfo:

Public Member Functions

constexpr ErrorInfo ()
constexpr ErrorInfo (ErrorCodeI code, char const *token, char const *message)
constexpr ErrorInfo (ErrorCodeI code, char const *token, char const *message, int httpStatus)

Public Attributes

ErrorCodeI code
json::StaticString token
json::StaticString message
int httpStatus

Detailed Description

Maps an rpc error code to its token, default message, and HTTP status.

Definition at line 171 of file ErrorCodes.h.

Constructor & Destructor Documentation

◆ ErrorInfo() [1/3]

xrpl::RPC::ErrorInfo::ErrorInfo ( )
constexpr

Definition at line 174 of file ErrorCodes.h.

◆ ErrorInfo() [2/3]

xrpl::RPC::ErrorInfo::ErrorInfo ( ErrorCodeI code,
char const * token,
char const * message )
constexpr

Definition at line 179 of file ErrorCodes.h.

◆ ErrorInfo() [3/3]

xrpl::RPC::ErrorInfo::ErrorInfo ( ErrorCodeI code,
char const * token,
char const * message,
int httpStatus )
constexpr

Definition at line 184 of file ErrorCodes.h.

Member Data Documentation

◆ code

ErrorCodeI xrpl::RPC::ErrorInfo::code

Definition at line 189 of file ErrorCodes.h.

◆ token

json::StaticString xrpl::RPC::ErrorInfo::token

Definition at line 190 of file ErrorCodes.h.

◆ message

json::StaticString xrpl::RPC::ErrorInfo::message

Definition at line 191 of file ErrorCodes.h.

◆ httpStatus

int xrpl::RPC::ErrorInfo::httpStatus

Definition at line 192 of file ErrorCodes.h.