34 #include <system_error> 108 template<
typename Base>
115 std::ostringstream ss;
116 ss <<
m_loc <<
':' <<
typeid(*this).name() <<
": " << Base::what();
132 "failed to get blocks",
133 "failed to get hashes",
134 "failed to get out indices",
135 "failed to get random outs" 145 template<
typename Base,
int msg_index>
158 std::ostringstream ss;
190 std::ostringstream ss;
211 :
wallet_runtime_error(
std::
move(loc),
"This signature was made with stale data: export fresh multisig data, which other participants must then use")
219 :
wallet_runtime_error(
std::
move(loc),
"Not enough multisig data was found to sign: import multisig data from more other participants")
241 "file already exists",
243 "failed to read file",
244 "failed to save file" 254 template<
int msg_index>
380 std::ostringstream ss;
503 std::ostringstream ss;
529 std::ostringstream ss;
557 std::ostringstream ss;
587 std::ostringstream ss;
603 typedef std::vector<cryptonote::tx_source_entry>
sources_t;
624 std::ostringstream ss;
630 ss <<
"\n source " <<
i <<
":";
644 ss <<
"\nDestinations:";
677 std::ostringstream ss;
698 ,
const std::vector<cryptonote::tx_destination_entry>&
destinations 714 std::ostringstream ss;
757 std::ostringstream ss;
796 "subtractfeefrom: bad index: " +
std::
to_string(bad_index) +
" (indexes are 0-based)")
815 std::ostringstream ss;
959 :
scan_tx_error(
std::
move(loc),
"The wallet has already seen 1 or more recent transactions than the scanned tx")
990 #if !defined(_MSC_VER) 992 template<
typename TException,
typename... TArgs>
996 LOG_PRINT_L0(
e.to_string());
1001 #include <boost/preprocessor/repetition/enum_binary_params.hpp> 1002 #include <boost/preprocessor/repetition/enum_params.hpp> 1003 #include <boost/preprocessor/repetition/repeat_from_to.hpp> 1005 template<
typename TException>
1009 LOG_PRINT_L0(
e.to_string());
1013 #define GEN_throw_wallet_ex(z, n, data) \ 1014 template<typename TException, BOOST_PP_ENUM_PARAMS(n, typename TArg)> \ 1015 void throw_wallet_ex(std::string&& loc, BOOST_PP_ENUM_BINARY_PARAMS(n, const TArg, &arg)) \ 1017 TException e(std::move(loc), BOOST_PP_ENUM_PARAMS(n, arg)); \ 1018 LOG_PRINT_L0(e.to_string()); \ 1022 BOOST_PP_REPEAT_FROM_TO(1, 6, GEN_throw_wallet_ex, ~)
1027 #define STRINGIZE_DETAIL(x) #x 1028 #define STRINGIZE(x) STRINGIZE_DETAIL(x) 1030 #define THROW_WALLET_EXCEPTION(err_type, ...) \ 1032 LOG_ERROR("THROW EXCEPTION: " << #err_type); \ 1033 tools::error::throw_wallet_ex<err_type>(std::string(__FILE__ ":" STRINGIZE(__LINE__)), ## __VA_ARGS__); \ 1036 #define THROW_WALLET_EXCEPTION_IF(cond, err_type, ...) \ 1039 LOG_ERROR(#cond << ". THROW EXCEPTION: " << #err_type); \ 1040 tools::error::throw_wallet_ex<err_type>(std::string(__FILE__ ":" STRINGIZE(__LINE__)), ## __VA_ARGS__); \
std::string get_account_address_as_str(network_type nettype, bool subaddress, account_public_address const &adr)
Definition: cryptonote_basic_impl.cpp:150
int i
Definition: pymoduletest.py:23
::std::string string
Definition: gtest-port.h:1097
uint64_t get_transaction_weight(const transaction &tx, size_t blob_size)
Definition: cryptonote_format_utils.cpp:445
uint64_t amount
Definition: cryptonote_tx_utils.h:51
args
Definition: build_protob.py:10
Holds cryptonote related classes and helpers.
Definition: blockchain_db.cpp:44
e
Definition: pymoduletest.py:79
Definition: cryptonote_tx_utils.h:42
std::string obj_to_json_str(T &obj)
Definition: cryptonote_format_utils.h:206
unsigned __int64 uint64_t
Definition: stdint.h:136
Definition: wallet_errors.h:232
uint64_t amount
Definition: cryptonote_tx_utils.h:77
#define false
Definition: stdbool.h:37
bool is_subaddress
Definition: cryptonote_tx_utils.h:79
POD_CLASS public_key
Definition: crypto.h:61
account_public_address addr
Definition: cryptonote_tx_utils.h:78
std::string blobdata
Definition: blobdatatype.h:39
Definition: get_output_distribution.py:1
network_type
Definition: cryptonote_config.h:301
uint32_t address
Definition: getifaddr.c:269
const T & move(const T &t)
Definition: gtest-port.h:1317
password_entry_failed(std::string &&loc, const std::string &msg="Password entry failed")
Definition: wallet_errors.h:234
Definition: cryptonote_tx_utils.h:74
std::string to_string(t_connection_type type)
Definition: connection_basic.cpp:70
std::string print_money(uint64_t amount, unsigned int decimal_point)
Definition: cryptonote_format_utils.cpp:1180
error
Tracks LMDB error codes.
Definition: error.h:44
tuple message
Definition: gtest_output_test.py:331
Definition: cryptonote_basic.h:204
#define true
Definition: stdbool.h:36