Electroneum
hw::trezor::exc::TrezorException Class Reference

#include <exceptions.hpp>

Inheritance diagram for hw::trezor::exc::TrezorException:
Collaboration diagram for hw::trezor::exc::TrezorException:

Public Member Functions

 TrezorException ()
 
 TrezorException (std::string what)
 
virtual const char * what () const throw ()
 

Protected Attributes

boost::optional< std::string > reason
 

Detailed Description

Definition at line 60 of file exceptions.hpp.

Constructor & Destructor Documentation

◆ TrezorException() [1/2]

hw::trezor::exc::TrezorException::TrezorException ( )
inline

Definition at line 65 of file exceptions.hpp.

65 : reason("General Trezor exception"){}
boost::optional< std::string > reason
Definition: exceptions.hpp:62

◆ TrezorException() [2/2]

hw::trezor::exc::TrezorException::TrezorException ( std::string  what)
inlineexplicit

Definition at line 66 of file exceptions.hpp.

66 : reason(what){}
boost::optional< std::string > reason
Definition: exceptions.hpp:62
virtual const char * what() const
Definition: exceptions.hpp:68

Member Function Documentation

◆ what()

virtual const char* hw::trezor::exc::TrezorException::what ( ) const
throw (
)
inlinevirtual

Definition at line 68 of file exceptions.hpp.

68  {
69  return reason.get().c_str();
70  }
boost::optional< std::string > reason
Definition: exceptions.hpp:62

Member Data Documentation

◆ reason

boost::optional<std::string> hw::trezor::exc::TrezorException::reason
protected

Definition at line 62 of file exceptions.hpp.


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