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

#include <wallet_errors.h>

Inheritance diagram for tools::error::not_enough_etn:
Collaboration diagram for tools::error::not_enough_etn:

Public Member Functions

 not_enough_etn (std::string &&loc, uint64_t available, uint64_t tx_amount, uint64_t fee)
uint64_t available () const
uint64_t tx_amount () 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 500 of file wallet_errors.h.

Constructor & Destructor Documentation

◆ not_enough_etn()

tools::error::not_enough_etn::not_enough_etn ( std::string && loc,
uint64_t available,
uint64_t tx_amount,
uint64_t fee )
inlineexplicit

Definition at line 502 of file wallet_errors.h.

503 : transfer_error(std::move(loc), "not enough ETN")
504 , m_available(available)
505 , m_tx_amount(tx_amount)
506 {
507 }
transfer_error(std::string &&loc, const std::string &message)
Here is the call graph for this function:

Member Function Documentation

◆ available()

uint64_t tools::error::not_enough_etn::available ( ) const
inline

Definition at line 509 of file wallet_errors.h.

509{ return m_available; }
Here is the caller graph for this function:

◆ to_string()

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

Definition at line 512 of file wallet_errors.h.

513 {
514 std::ostringstream ss;
516 ", available = " << cryptonote::print_etn(m_available) <<
517 ", tx_amount = " << cryptonote::print_etn(m_tx_amount);
518 return ss.str();
519 }
std::string print_etn(uint64_t amount, unsigned int decimal_point)
Here is the call graph for this function:

◆ tx_amount()

uint64_t tools::error::not_enough_etn::tx_amount ( ) const
inline

Definition at line 510 of file wallet_errors.h.

510{ return m_tx_amount; }
Here is the caller 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