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 270 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 272 of file wallet_errors.h.

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

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

284 { 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 286 of file wallet_errors.h.

286 { 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: