Electroneum
tools::error::wallet_rpc_error Struct Reference

#include <wallet_errors.h>

Inheritance diagram for tools::error::wallet_rpc_error:
Collaboration diagram for tools::error::wallet_rpc_error:

Public Member Functions

const std::string & request () const
 
std::string to_string () const
 
- Public Member Functions inherited from tools::error::wallet_error_base< Base >
const std::string & location () const
 
std::string to_string () const
 

Protected Member Functions

 wallet_rpc_error (std::string &&loc, const std::string &message, const std::string &request)
 
- Protected Member Functions inherited from tools::error::wallet_error_base< Base >
 wallet_error_base (std::string &&loc, const std::string &message)
 

Detailed Description

Definition at line 775 of file wallet_errors.h.

Constructor & Destructor Documentation

◆ wallet_rpc_error()

tools::error::wallet_rpc_error::wallet_rpc_error ( std::string &&  loc,
const std::string &  message,
const std::string &  request 
)
inlineexplicitprotected

Definition at line 787 of file wallet_errors.h.

789  , m_request(request)
790  {
791  }
const std::string & request() const
wallet_error_base< std::logic_error > wallet_logic_error
std::string message("Message requiring signing")
const T & move(const T &t)
Definition: gtest-port.h:1317

Member Function Documentation

◆ request()

const std::string& tools::error::wallet_rpc_error::request ( ) const
inline

Definition at line 777 of file wallet_errors.h.

777 { return m_request; }

◆ to_string()

std::string tools::error::wallet_rpc_error::to_string ( ) const
inline

Definition at line 779 of file wallet_errors.h.

780  {
781  std::ostringstream ss;
782  ss << wallet_logic_error::to_string() << ", request = " << m_request;
783  return ss.str();
784  }
std::string to_string() const
Here is the call graph for this function:
Here is the caller graph for this function:

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