30#ifndef MONERO_EXCEPTIONS_H
31#define MONERO_EXCEPTIONS_H
35#include <boost/optional.hpp>
49 virtual const char*
what()
const throw() {
50 return reason.get().c_str();
68 virtual const char*
what()
const throw() {
69 return reason.get().c_str();
133 boost::optional<uint32_t>
code;
139 boost::optional<std::string>
message)
141 reason =
"Trezor returned failure: code="
142 + (
code ? std::to_string(
code.get()) :
"")
CommunicationException()
Definition exceptions.hpp:76
TrezorException()
Definition exceptions.hpp:65
CommunicationException()
Definition exceptions.hpp:76
DeviceAcquireException()
Definition exceptions.hpp:100
CommunicationException()
Definition exceptions.hpp:76
DeviceNotResponsiveException()
Definition exceptions.hpp:94
CommunicationException()
Definition exceptions.hpp:76
EncodingException()
Definition exceptions.hpp:82
CommunicationException()
Definition exceptions.hpp:76
NotConnectedException()
Definition exceptions.hpp:88
Poly1305TagInvalid()
Definition exceptions.hpp:57
SecurityException()
Definition exceptions.hpp:46
CommunicationException()
Definition exceptions.hpp:76
ProtocolException()
Definition exceptions.hpp:118
SecurityException(std::string what)
Definition exceptions.hpp:47
SecurityException()
Definition exceptions.hpp:46
boost::optional< std::string > reason
Definition exceptions.hpp:43
virtual const char * what() const
Definition exceptions.hpp:49
CommunicationException()
Definition exceptions.hpp:76
SessionException()
Definition exceptions.hpp:106
TimeoutException()
Definition exceptions.hpp:112
CommunicationException()
Definition exceptions.hpp:76
virtual const char * what() const
Definition exceptions.hpp:68
TrezorException(std::string what)
Definition exceptions.hpp:66
boost::optional< std::string > reason
Definition exceptions.hpp:62
TrezorException()
Definition exceptions.hpp:65
CancelledException()
Definition exceptions.hpp:156
FailureException()
Definition exceptions.hpp:137
FailureException(boost::optional< uint32_t > code, boost::optional< std::string > message)
Definition exceptions.hpp:138
boost::optional< std::string > message
Definition exceptions.hpp:134
FailureException()
Definition exceptions.hpp:137
ProtocolException()
Definition exceptions.hpp:118
boost::optional< uint32_t > code
Definition exceptions.hpp:133
FirmwareErrorException()
Definition exceptions.hpp:186
FailureException()
Definition exceptions.hpp:137
InvalidPinException()
Definition exceptions.hpp:168
FailureException()
Definition exceptions.hpp:137
NotEnoughFundsException()
Definition exceptions.hpp:174
FailureException()
Definition exceptions.hpp:137
NotInitializedException()
Definition exceptions.hpp:180
FailureException()
Definition exceptions.hpp:137
PinExpectedException()
Definition exceptions.hpp:162
FailureException()
Definition exceptions.hpp:137
SecurityException()
Definition exceptions.hpp:128
ProtocolException()
Definition exceptions.hpp:118
UnexpectedMessageException()
Definition exceptions.hpp:150
FailureException()
Definition exceptions.hpp:137
Definition exceptions.hpp:123
Definition exceptions.hpp:39
Definition device_trezor.cpp:35