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

◆ TrezorException() [2/2]

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

Definition at line 66 of file exceptions.hpp.

66: reason(what){}
virtual const char * what() const
Here is the call graph for this function:

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 }
Here is the caller graph for this function:

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:
  • /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/src/device_trezor/trezor/exceptions.hpp