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

#include <transport.hpp>

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

Public Member Functions

 UnexpectedMessageException ()
 UnexpectedMessageException (hw::trezor::messages::MessageType recvType, const std::shared_ptr< google::protobuf::Message > &recvMsg)
 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 ()

Protected Attributes

hw::trezor::messages::MessageType recvType
std::shared_ptr< google::protobuf::Message > recvMsg
Protected Attributes inherited from hw::trezor::exc::TrezorException
boost::optional< std::string > reason

Detailed Description

Definition at line 330 of file transport.hpp.

Constructor & Destructor Documentation

◆ UnexpectedMessageException() [1/2]

hw::trezor::exc::UnexpectedMessageException::UnexpectedMessageException ( )
inline

Definition at line 337 of file transport.hpp.

337: ProtocolException("Trezor returned unexpected message") {};
Here is the call graph for this function:

◆ UnexpectedMessageException() [2/2]

hw::trezor::exc::UnexpectedMessageException::UnexpectedMessageException ( hw::trezor::messages::MessageType recvType,
const std::shared_ptr< google::protobuf::Message > & recvMsg )
inline

Definition at line 338 of file transport.hpp.

341 reason = std::string("Trezor returned unexpected message: ") + std::to_string(recvType);
342 }
boost::optional< std::string > reason
hw::trezor::messages::MessageType recvType
std::shared_ptr< google::protobuf::Message > recvMsg

Member Function Documentation

◆ ProtocolException()

Definition at line 118 of file exceptions.hpp.

118: CommunicationException("Trezor protocol error"){}
Here is the caller graph for this function:

Member Data Documentation

◆ recvMsg

std::shared_ptr<google::protobuf::Message> hw::trezor::exc::UnexpectedMessageException::recvMsg
protected

Definition at line 333 of file transport.hpp.

◆ recvType

hw::trezor::messages::MessageType hw::trezor::exc::UnexpectedMessageException::recvType
protected

Definition at line 332 of file transport.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/transport.hpp