Electroneum
tools::error Namespace Reference

Classes

struct  acc_outs_lookup_error
 
struct  account_index_outofbound
 
struct  address_index_outofbound
 
struct  bitmessage_api_error
 
struct  block_parse_error
 
struct  daemon_busy
 
struct  failed_rpc_request
 
struct  file_error_base
 
struct  get_histogram_error
 
struct  get_output_distribution
 
struct  get_tx_pool_error
 
struct  index_outofbound
 
struct  invalid_multisig_seed
 
struct  invalid_password
 
struct  invalid_pregenerated_random
 
struct  invalid_priority
 
struct  is_key_image_spent_error
 
struct  is_public_output_spent_error
 
struct  mms_error
 
struct  multisig_export_needed
 
struct  multisig_import_needed
 
struct  no_connection_to_bitmessage
 
struct  no_connection_to_daemon
 
struct  not_enough_etn
 
struct  not_enough_outs_to_mix
 
struct  not_enough_unlocked_etn
 
struct  out_of_hashchain_bounds_error
 
struct  password_entry_failed
 
struct  password_needed
 
struct  refresh_error
 
struct  signature_check_failed
 
struct  transfer_error
 
struct  tx_not_constructed
 
struct  tx_not_possible
 
struct  tx_parse_error
 
struct  tx_rejected
 
struct  tx_sum_overflow
 
struct  tx_too_big
 
struct  unexpected_txin_type
 
struct  unexpected_txout_type
 
struct  wallet_error_base
 
struct  wallet_files_doesnt_correspond
 
struct  wallet_generic_rpc_error
 
struct  wallet_internal_error
 
struct  wallet_not_initialized
 
struct  wallet_rpc_error
 
struct  zero_destination
 

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

Definition at line 160 of file wallet_errors.h.

◆ wallet_runtime_error

Definition at line 161 of file wallet_errors.h.

Enumeration Type Documentation

◆ failed_rpc_request_message_indices

◆ file_error_message_indices

Function Documentation

◆ throw_wallet_ex()

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

Definition at line 903 of file wallet_errors.h.

904  {
905  TException e(std::move(loc), args...);
906  LOG_PRINT_L0(e.to_string());
907  throw e;
908  }
#define LOG_PRINT_L0(x)
Definition: misc_log_ex.h:99
const T & move(const T &t)
Definition: gtest-port.h:1317
Here is the call graph for this function:

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"
}

Definition at line 124 of file wallet_errors.h.

◆ 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"
}

Definition at line 255 of file wallet_errors.h.