Electroneum
tools::error::wallet_error_base< Base > Struct Template Reference

#include <wallet_errors.h>

Inheritance diagram for tools::error::wallet_error_base< Base >:
Collaboration diagram for tools::error::wallet_error_base< Base >:

Public Member Functions

const std::string & location () const
 
std::string to_string () const
 

Protected Member Functions

 wallet_error_base (std::string &&loc, const std::string &message)
 

Detailed Description

template<typename Base>
struct tools::error::wallet_error_base< Base >

Definition at line 101 of file wallet_errors.h.

Constructor & Destructor Documentation

◆ wallet_error_base()

template<typename Base >
tools::error::wallet_error_base< Base >::wallet_error_base ( std::string &&  loc,
const std::string &  message 
)
inlineprotected

Definition at line 113 of file wallet_errors.h.

114  : Base(message)
115  , m_loc(loc)
116  {
117  }
std::string message("Message requiring signing")

Member Function Documentation

◆ location()

template<typename Base >
const std::string& tools::error::wallet_error_base< Base >::location ( ) const
inline

Definition at line 103 of file wallet_errors.h.

103 { return m_loc; }

◆ to_string()

template<typename Base >
std::string tools::error::wallet_error_base< Base >::to_string ( ) const
inline

Definition at line 105 of file wallet_errors.h.

106  {
107  std::ostringstream ss;
108  ss << m_loc << ':' << typeid(*this).name() << ": " << Base::what();
109  return ss.str();
110  }
Here is the caller graph for this function:

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