Electroneum
hw::trezor::exc::proto::InvalidPinException Class Reference

#include <exceptions.hpp>

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

Public Member Functions

 InvalidPinException ()
 
 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 165 of file exceptions.hpp.

Constructor & Destructor Documentation

◆ InvalidPinException()

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

Definition at line 168 of file exceptions.hpp.

168 : FailureException("Trezor claims PIN is invalid"){}

Member Function Documentation

◆ FailureException() [1/2]

hw::trezor::exc::proto::FailureException::FailureException
inline

Definition at line 137 of file exceptions.hpp.

137 : ProtocolException("Trezor returned failure"){}

◆ FailureException() [2/2]

hw::trezor::exc::proto::FailureException::FailureException
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
Definition: exceptions.hpp:62
std::string message("Message requiring signing")
std::string to_string(t_connection_type type)

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