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

#include <exceptions.hpp>

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

Public Member Functions

 PinExpectedException ()
 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 159 of file exceptions.hpp.

Constructor & Destructor Documentation

◆ PinExpectedException()

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

Definition at line 162 of file exceptions.hpp.

162: FailureException("Trezor claims PIN is expected"){}
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