Electroneum
tools::error::failed_rpc_request< Base, msg_index > Struct Template Reference

#include <wallet_errors.h>

Inheritance diagram for tools::error::failed_rpc_request< Base, msg_index >:
Collaboration diagram for tools::error::failed_rpc_request< Base, msg_index >:

Public Member Functions

 failed_rpc_request (std::string &&loc, const std::string &status)
 
const std::string & status () const
 
std::string to_string () const
 

Detailed Description

template<typename Base, int msg_index>
struct tools::error::failed_rpc_request< Base, msg_index >

Definition at line 138 of file wallet_errors.h.

Constructor & Destructor Documentation

◆ failed_rpc_request()

template<typename Base , int msg_index>
tools::error::failed_rpc_request< Base, msg_index >::failed_rpc_request ( std::string &&  loc,
const std::string &  status 
)
inlineexplicit

Definition at line 140 of file wallet_errors.h.

141  : Base(std::move(loc), failed_rpc_request_messages[msg_index])
142  , m_status(status)
143  {
144  }
const T & move(const T &t)
Definition: gtest-port.h:1317
const char *const failed_rpc_request_messages[]
const std::string & status() const

Member Function Documentation

◆ status()

template<typename Base , int msg_index>
const std::string& tools::error::failed_rpc_request< Base, msg_index >::status ( ) const
inline

Definition at line 146 of file wallet_errors.h.

146 { return m_status; }
Here is the caller graph for this function:

◆ to_string()

template<typename Base , int msg_index>
std::string tools::error::failed_rpc_request< Base, msg_index >::to_string ( ) const
inline

Definition at line 148 of file wallet_errors.h.

149  {
150  std::ostringstream ss;
151  ss << Base::to_string() << ", status = " << status();
152  return ss.str();
153  }
std::string to_string(t_connection_type type)
Here is the call graph for this function:

The documentation for this struct was generated from the following file: