Electroneum
Loading...
Searching...
No Matches
tools::error::tx_sum_overflow Struct Reference

#include <wallet_errors.h>

Inheritance diagram for tools::error::tx_sum_overflow:
Collaboration diagram for tools::error::tx_sum_overflow:

Public Member Functions

 tx_sum_overflow (std::string &&loc, const std::vector< cryptonote::tx_destination_entry > &destinations, uint64_t fee, cryptonote::network_type nettype)
const std::vector< cryptonote::tx_destination_entry > & destinations () const
uint64_t fee () const
std::string to_string () const
Public Member Functions inherited from tools::error::wallet_error_base< std::logic_error >
const std::string & location () const
std::string to_string () const

Additional Inherited Members

Protected Member Functions inherited from tools::error::transfer_error
 transfer_error (std::string &&loc, const std::string &message)
Protected Member Functions inherited from tools::error::wallet_error_base< std::logic_error >
 wallet_error_base (std::string &&loc, const std::string &message)

Detailed Description

Definition at line 685 of file wallet_errors.h.

Constructor & Destructor Documentation

◆ tx_sum_overflow()

tools::error::tx_sum_overflow::tx_sum_overflow ( std::string && loc,
const std::vector< cryptonote::tx_destination_entry > & destinations,
uint64_t fee,
cryptonote::network_type nettype )
inlineexplicit

Definition at line 687 of file wallet_errors.h.

693 : transfer_error(std::move(loc), "transaction sum + fee exceeds " + cryptonote::print_etn(std::numeric_limits<uint64_t>::max()))
694 , m_destinations(destinations)
695 , m_fee(fee)
696 , m_nettype(nettype)
697 {
698 }
std::string print_etn(uint64_t amount, unsigned int decimal_point)
transfer_error(std::string &&loc, const std::string &message)
const std::vector< cryptonote::tx_destination_entry > & destinations() const
Here is the call graph for this function:

Member Function Documentation

◆ destinations()

const std::vector< cryptonote::tx_destination_entry > & tools::error::tx_sum_overflow::destinations ( ) const
inline

Definition at line 700 of file wallet_errors.h.

700{ return m_destinations; }
Here is the caller graph for this function:

◆ fee()

uint64_t tools::error::tx_sum_overflow::fee ( ) const
inline

Definition at line 701 of file wallet_errors.h.

701{ return m_fee; }
Here is the caller graph for this function:

◆ to_string()

std::string tools::error::tx_sum_overflow::to_string ( ) const
inline

Definition at line 703 of file wallet_errors.h.

704 {
705 std::ostringstream ss;
707 ", fee = " << cryptonote::print_etn(m_fee) <<
708 ", destinations:";
709 for (const auto& dst : m_destinations)
710 {
711 ss << '\n' << cryptonote::print_etn(dst.amount) << " -> " << cryptonote::get_account_address_as_str(m_nettype, dst.is_subaddress, dst.addr);
712 }
713 return ss.str();
714 }
std::string get_account_address_as_str(network_type nettype, bool subaddress, account_public_address const &adr)
Here is the call graph for this function:

The documentation for this struct was generated from the following file:
  • /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/src/wallet/wallet_errors.h