Electroneum
hw::trezor::exc::SecurityException Class Reference

#include <exceptions.hpp>

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

Public Member Functions

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

Protected Attributes

boost::optional< std::string > reason
 

Detailed Description

Definition at line 41 of file exceptions.hpp.

Constructor & Destructor Documentation

◆ SecurityException() [1/2]

hw::trezor::exc::SecurityException::SecurityException ( )
inline

Definition at line 46 of file exceptions.hpp.

46 : reason("General Security exception"){}
boost::optional< std::string > reason
Definition: exceptions.hpp:43

◆ SecurityException() [2/2]

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

Definition at line 47 of file exceptions.hpp.

47 : reason(what){}
boost::optional< std::string > reason
Definition: exceptions.hpp:43
virtual const char * what() const
Definition: exceptions.hpp:49

Member Function Documentation

◆ what()

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

Definition at line 49 of file exceptions.hpp.

49  {
50  return reason.get().c_str();
51  }
boost::optional< std::string > reason
Definition: exceptions.hpp:43

Member Data Documentation

◆ reason

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

Definition at line 43 of file exceptions.hpp.


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