Electroneum
tools::error::wallet_generic_rpc_error Struct Reference

#include <wallet_errors.h>

Inheritance diagram for tools::error::wallet_generic_rpc_error:
Collaboration diagram for tools::error::wallet_generic_rpc_error:

Public Member Functions

 wallet_generic_rpc_error (std::string &&loc, const std::string &request, const std::string &status)
 
const std::string & status () const
 
- Public Member Functions inherited from tools::error::wallet_rpc_error
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
 

Additional Inherited Members

- Protected Member Functions inherited from tools::error::wallet_rpc_error
 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 797 of file wallet_errors.h.

Constructor & Destructor Documentation

◆ wallet_generic_rpc_error()

tools::error::wallet_generic_rpc_error::wallet_generic_rpc_error ( std::string &&  loc,
const std::string &  request,
const std::string &  status 
)
inlineexplicit

Definition at line 799 of file wallet_errors.h.

800  : wallet_rpc_error(std::move(loc), std::string("error in ") + request + " RPC: " + status, request),
801  m_status(status)
802  {
803  }
wallet_rpc_error(std::string &&loc, const std::string &message, const std::string &request)
const std::string & request() const
::std::string string
Definition: gtest-port.h:1097
const T & move(const T &t)
Definition: gtest-port.h:1317
const std::string & status() const

Member Function Documentation

◆ status()

const std::string& tools::error::wallet_generic_rpc_error::status ( ) const
inline

Definition at line 804 of file wallet_errors.h.

804 { return m_status; }

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