30 #ifndef ELECTRONEUM_EXCEPTIONS_H
31 #define ELECTRONEUM_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;
134 boost::optional<std::string> message;
139 boost::optional<std::string> message)
141 reason =
"Trezor returned failure: code="
DeviceNotResponsiveException()
SecurityException(std::string what)
boost::optional< std::string > reason
virtual const char * what() const
virtual const char * what() const
TrezorException(std::string what)
boost::optional< std::string > reason
FailureException(boost::optional< uint32_t > code, boost::optional< std::string > message)
NotEnoughFundsException()
NotInitializedException()
UnexpectedMessageException()
std::string message("Message requiring signing")
std::string to_string(t_connection_type type)