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

#include <wallet_errors.h>

Inheritance diagram for tools::error::tx_not_possible:
Collaboration diagram for tools::error::tx_not_possible:

Public Member Functions

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

Constructor & Destructor Documentation

◆ tx_not_possible()

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

Definition at line 528 of file wallet_errors.h.

529 : transfer_error(std::move(loc), "tx not possible")
530 , m_available(available)
531 , m_tx_amount(tx_amount)
532 , m_fee(fee)
533 {
534 }
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::tx_not_possible::available ( ) const
inline

Definition at line 536 of file wallet_errors.h.

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

◆ fee()

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

Definition at line 538 of file wallet_errors.h.

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

◆ to_string()

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

Definition at line 540 of file wallet_errors.h.

541 {
542 std::ostringstream ss;
544 ", available = " << cryptonote::print_etn(m_available) <<
545 ", tx_amount = " << cryptonote::print_etn(m_tx_amount) <<
546 ", fee = " << cryptonote::print_etn(m_fee);
547 return ss.str();
548 }
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::tx_not_possible::tx_amount ( ) const
inline

Definition at line 537 of file wallet_errors.h.

537{ 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