Electroneum
tools::error::file_error_base< msg_index > Struct Template Reference

#include <wallet_errors.h>

Inheritance diagram for tools::error::file_error_base< msg_index >:
Collaboration diagram for tools::error::file_error_base< msg_index >:

Public Member Functions

 file_error_base (std::string &&loc, const std::string &file)
 
const std::string & file () 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_error_base< Base >
 wallet_error_base (std::string &&loc, const std::string &message)
 

Detailed Description

template<int msg_index>
struct tools::error::file_error_base< msg_index >

Definition at line 269 of file wallet_errors.h.

Constructor & Destructor Documentation

◆ file_error_base()

template<int msg_index>
tools::error::file_error_base< msg_index >::file_error_base ( std::string &&  loc,
const std::string &  file 
)
inlineexplicit

Definition at line 271 of file wallet_errors.h.

272  : wallet_logic_error(std::move(loc), std::string(file_error_messages[msg_index]) + " \"" + file + '\"')
273  , m_file(file)
274  {
275  }
276 
277  explicit file_error_base(std::string&& loc, const std::string& file, const std::error_code &e)
278  : wallet_logic_error(std::move(loc), std::string(file_error_messages[msg_index]) + " \"" + file + "\": " + e.message())
279  , m_file(file)
280  {
281  }
std::string message("Message requiring signing")
::std::string string
Definition: gtest-port.h:1097
const T & move(const T &t)
Definition: gtest-port.h:1317
const char *const file_error_messages[]
wallet_error_base< std::logic_error > wallet_logic_error
const std::string & file() const
file_error_base(std::string &&loc, const std::string &file)

Member Function Documentation

◆ file()

template<int msg_index>
const std::string& tools::error::file_error_base< msg_index >::file ( void  ) const
inline

Definition at line 283 of file wallet_errors.h.

283 { return m_file; }

◆ to_string()

template<int msg_index>
std::string tools::error::file_error_base< msg_index >::to_string ( ) const
inline

Definition at line 285 of file wallet_errors.h.

285 { return wallet_logic_error::to_string(); }
std::string to_string() const
Here is the call graph for this function:

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