Monero
Loading...
Searching...
No Matches
tools::error Namespace Reference

Classes

struct  wallet_error_base
struct  failed_rpc_request
struct  wallet_internal_error
struct  unexpected_txin_type
struct  wallet_not_initialized
struct  multisig_export_needed
struct  multisig_import_needed
struct  password_needed
struct  password_entry_failed
struct  file_error_base
struct  invalid_password
struct  invalid_priority
struct  invalid_multisig_seed
struct  invalid_spend_key
struct  invalid_pregenerated_random
struct  refresh_error
struct  index_outofbound
struct  account_index_outofbound
struct  address_index_outofbound
struct  acc_outs_lookup_error
struct  block_parse_error
struct  tx_parse_error
struct  get_tx_pool_error
struct  out_of_hashchain_bounds_error
struct  reorg_depth_error
struct  incorrect_fork_version
struct  signature_check_failed
struct  transfer_error
struct  not_enough_unlocked_money
struct  not_enough_money
struct  tx_not_possible
struct  not_enough_outs_to_mix
struct  tx_not_constructed
struct  tx_rejected
struct  tx_sum_overflow
struct  tx_too_big
struct  zero_amount
struct  zero_destination
struct  subtract_fee_from_bad_index
struct  nonzero_unlock_time
struct  wallet_rpc_error
struct  wallet_generic_rpc_error
struct  wallet_coded_rpc_error
struct  daemon_busy
struct  no_connection_to_daemon
struct  is_key_image_spent_error
struct  get_histogram_error
struct  get_output_distribution
struct  payment_required
struct  wallet_files_doesnt_correspond
struct  mms_error
struct  no_connection_to_bitmessage
struct  bitmessage_api_error
struct  scan_tx_error
struct  wont_reprocess_recent_txs_via_untrusted_daemon
struct  background_sync_error
struct  background_wallet_already_open
struct  background_custom_password_same_as_wallet_password

Typedefs

typedef wallet_error_base< std::logic_error > wallet_logic_error
typedef wallet_error_base< std::runtime_error > wallet_runtime_error
typedef file_error_base< file_exists_message_indexfile_exists
typedef file_error_base< file_not_found_message_indexfile_not_found
typedef file_error_base< file_read_error_message_indexfile_read_error
typedef file_error_base< file_save_error_message_indexfile_save_error
typedef failed_rpc_request< refresh_error, get_blocks_error_message_indexget_blocks_error
typedef failed_rpc_request< refresh_error, get_hashes_error_message_indexget_hashes_error
typedef failed_rpc_request< refresh_error, get_out_indices_error_message_indexget_out_indices_error
typedef failed_rpc_request< transfer_error, get_outs_error_message_indexget_outs_error

Enumerations

enum  failed_rpc_request_message_indices { get_blocks_error_message_index , get_hashes_error_message_index , get_out_indices_error_message_index , get_outs_error_message_index }
enum  file_error_message_indices { file_exists_message_index , file_not_found_message_index , file_read_error_message_index , file_save_error_message_index }

Functions

template<typename TException, typename... TArgs>
void throw_wallet_ex (std::string &&loc, const TArgs &... args)

Variables

const char *const failed_rpc_request_messages []
const char *const file_error_messages []

Typedef Documentation

◆ file_exists

◆ file_not_found

◆ file_read_error

◆ file_save_error

◆ get_blocks_error

◆ get_hashes_error

◆ get_out_indices_error

◆ get_outs_error

◆ wallet_logic_error

◆ wallet_runtime_error

Enumeration Type Documentation

◆ failed_rpc_request_message_indices

Enumerator
get_blocks_error_message_index 
get_hashes_error_message_index 
get_out_indices_error_message_index 
get_outs_error_message_index 

◆ file_error_message_indices

Enumerator
file_exists_message_index 
file_not_found_message_index 
file_read_error_message_index 
file_save_error_message_index 

Function Documentation

◆ throw_wallet_ex()

template<typename TException, typename... TArgs>
void tools::error::throw_wallet_ex ( std::string && loc,
const TArgs &... args )

Variable Documentation

◆ failed_rpc_request_messages

const char* const tools::error::failed_rpc_request_messages[]
Initial value:
= {
"failed to get blocks",
"failed to get hashes",
"failed to get out indices",
"failed to get random outs"
}

◆ file_error_messages

const char* const tools::error::file_error_messages[]
Initial value:
= {
"file already exists",
"file not found",
"failed to read file",
"failed to save file"
}