Electroneum
Loading...
Searching...
No Matches
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 }

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 {
109 ss << m_loc << ':' << typeid(*this).name() << ": " << Base::what();
110 return ss.str();
111 }

The documentation for this struct was generated from the following file:
  • /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/src/wallet/wallet_errors.h