Go to the documentation of this file.
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()) :
"")
193 #endif //MONERO_EXCEPTIONS_H
DeviceAcquireException()
Definition: exceptions.hpp:100
boost::optional< std::string > message
Definition: exceptions.hpp:134
SecurityException()
Definition: exceptions.hpp:46
boost::optional< std::string > reason
Definition: exceptions.hpp:62
Definition: exceptions.hpp:91
EncodingException()
Definition: exceptions.hpp:82
boost::optional< uint32_t > code
Definition: exceptions.hpp:133
Definition: exceptions.hpp:97
DeviceNotResponsiveException()
Definition: exceptions.hpp:94
TrezorException()
Definition: exceptions.hpp:65
FailureException()
Definition: exceptions.hpp:137
Definition: exceptions.hpp:73
Definition: exceptions.hpp:165
TimeoutException()
Definition: exceptions.hpp:112
Definition: exceptions.hpp:60
PinExpectedException()
Definition: exceptions.hpp:162
NotInitializedException()
Definition: exceptions.hpp:180
ProtocolException()
Definition: exceptions.hpp:118
virtual const char * what() const
Definition: exceptions.hpp:68
Definition: exceptions.hpp:54
InvalidPinException()
Definition: exceptions.hpp:168
Definition: exceptions.hpp:147
NotConnectedException()
Definition: exceptions.hpp:88
NotEnoughFundsException()
Definition: exceptions.hpp:174
Definition: exceptions.hpp:171
Definition: exceptions.hpp:153
Definition: exceptions.hpp:115
Definition: exceptions.hpp:41
Definition: exceptions.hpp:177
Definition: exceptions.hpp:131
Definition: exceptions.hpp:159
Definition: exceptions.hpp:125
Definition: device.cpp:38
CommunicationException()
Definition: exceptions.hpp:76
UnexpectedMessageException()
Definition: exceptions.hpp:150
SecurityException()
Definition: exceptions.hpp:128
FirmwareErrorException()
Definition: exceptions.hpp:186
Definition: exceptions.hpp:109
Definition: exceptions.hpp:79
Definition: exceptions.hpp:103
Definition: exceptions.hpp:183
CancelledException()
Definition: exceptions.hpp:156
Definition: exceptions.hpp:85
boost::optional< std::string > reason
Definition: exceptions.hpp:43
Poly1305TagInvalid()
Definition: exceptions.hpp:57
virtual const char * what() const
Definition: exceptions.hpp:49
SessionException()
Definition: exceptions.hpp:106