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=" 193 #endif //ELECTRONEUM_EXCEPTIONS_H
DeviceNotResponsiveException()
boost::optional< std::string > reason
TrezorException(std::string what)
UnexpectedMessageException()
boost::optional< std::string > reason
NotInitializedException()
NotEnoughFundsException()
std::string message("Message requiring signing")
SecurityException(std::string what)
FailureException(boost::optional< uint32_t > code, boost::optional< std::string > message)
virtual const char * what() const
std::string to_string(t_connection_type type)
virtual const char * what() const