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