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 139 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 141 of file wallet_errors.h.

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

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 147 of file wallet_errors.h.

147 { 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 149 of file wallet_errors.h.

150  {
151  std::ostringstream ss;
152  ss << Base::to_string() << ", status = " << status();
153  return ss.str();
154  }
const std::string & status() const
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: