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 175 of file ErrorCodes.h.

Constructor & Destructor Documentation

◆ ErrorInfo() [1/3]

xrpl::rpc::ErrorInfo::ErrorInfo ( )
constexpr

Definition at line 178 of file ErrorCodes.h.

◆ ErrorInfo() [2/3]

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

Definition at line 183 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 188 of file ErrorCodes.h.

Member Data Documentation

◆ code

ErrorCodeI xrpl::rpc::ErrorInfo::code

Definition at line 193 of file ErrorCodes.h.

◆ token

json::StaticString xrpl::rpc::ErrorInfo::token

Definition at line 194 of file ErrorCodes.h.

◆ message

json::StaticString xrpl::rpc::ErrorInfo::message

Definition at line 195 of file ErrorCodes.h.

◆ httpStatus

int xrpl::rpc::ErrorInfo::httpStatus

Definition at line 196 of file ErrorCodes.h.