rippled
Public Member Functions | Public Attributes | List of all members
ripple::RPC::ErrorInfo Struct Reference

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

Collaboration diagram for ripple::RPC::ErrorInfo:
Collaboration graph
[legend]

Public Member Functions

constexpr ErrorInfo ()
 
constexpr ErrorInfo (error_code_i code_, char const *token_, char const *message_)
 
constexpr ErrorInfo (error_code_i code_, char const *token_, char const *message_, int http_status_)
 

Public Attributes

error_code_i code
 
Json::StaticString token
 
Json::StaticString message
 
int http_status
 

Detailed Description

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

Definition at line 167 of file ErrorCodes.h.

Constructor & Destructor Documentation

◆ ErrorInfo() [1/3]

constexpr ripple::RPC::ErrorInfo::ErrorInfo ( )
constexpr

Definition at line 170 of file ErrorCodes.h.

◆ ErrorInfo() [2/3]

constexpr ripple::RPC::ErrorInfo::ErrorInfo ( error_code_i  code_,
char const *  token_,
char const *  message_ 
)
constexpr

Definition at line 178 of file ErrorCodes.h.

◆ ErrorInfo() [3/3]

constexpr ripple::RPC::ErrorInfo::ErrorInfo ( error_code_i  code_,
char const *  token_,
char const *  message_,
int  http_status_ 
)
constexpr

Definition at line 186 of file ErrorCodes.h.

Member Data Documentation

◆ code

error_code_i ripple::RPC::ErrorInfo::code

Definition at line 198 of file ErrorCodes.h.

◆ token

Json::StaticString ripple::RPC::ErrorInfo::token

Definition at line 199 of file ErrorCodes.h.

◆ message

Json::StaticString ripple::RPC::ErrorInfo::message

Definition at line 200 of file ErrorCodes.h.

◆ http_status

int ripple::RPC::ErrorInfo::http_status

Definition at line 201 of file ErrorCodes.h.