Electroneum
Loading...
Searching...
No Matches
hw::trezor::exc::proto::FirmwareErrorException Class Reference

#include <exceptions.hpp>

Inheritance diagram for hw::trezor::exc::proto::FirmwareErrorException:
Collaboration diagram for hw::trezor::exc::proto::FirmwareErrorException:

Public Member Functions

 FirmwareErrorException ()
 FailureException ()
 FailureException (boost::optional< uint32_t > code, boost::optional< std::string > message)
Public Member Functions inherited from hw::trezor::exc::proto::FailureException
 FailureException ()
 FailureException (boost::optional< uint32_t > code, boost::optional< std::string > message)
 ProtocolException ()
Public Member Functions inherited from hw::trezor::exc::ProtocolException
 ProtocolException ()
 CommunicationException ()
Public Member Functions inherited from hw::trezor::exc::CommunicationException
 CommunicationException ()
 TrezorException ()
 TrezorException (std::string what)
Public Member Functions inherited from hw::trezor::exc::TrezorException
 TrezorException ()
 TrezorException (std::string what)
virtual const char * what () const throw ()

Additional Inherited Members

Protected Attributes inherited from hw::trezor::exc::TrezorException
boost::optional< std::string > reason

Detailed Description

Definition at line 183 of file exceptions.hpp.

Constructor & Destructor Documentation

◆ FirmwareErrorException()

hw::trezor::exc::proto::FirmwareErrorException::FirmwareErrorException ( )
inline

Definition at line 186 of file exceptions.hpp.

186: FailureException("Trezor returned firmware error"){}
Here is the call graph for this function:

Member Function Documentation

◆ FailureException() [1/2]

Definition at line 137 of file exceptions.hpp.

137: ProtocolException("Trezor returned failure"){}
Here is the caller graph for this function:

◆ FailureException() [2/2]

hw::trezor::exc::proto::FailureException::FailureException ( boost::optional< uint32_t > code,
boost::optional< std::string > message )
inline

Definition at line 138 of file exceptions.hpp.

140 : code(code), message(message) {
141 reason = "Trezor returned failure: code="
142 + (code ? std::to_string(code.get()) : "")
143 + ", message=" + (message ? message.get() : "");
144 };
boost::optional< std::string > reason
void get(std::istream &input, bool &res)
Definition io.h:62

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