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

115  : Base(message)
116  , m_loc(loc)
117  {
118  }
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 104 of file wallet_errors.h.

104 { return m_loc; }

◆ to_string()

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

Definition at line 106 of file wallet_errors.h.

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

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