Electroneum
tools::error::not_enough_unlocked_etn Struct Reference

#include <wallet_errors.h>

Inheritance diagram for tools::error::not_enough_unlocked_etn:
Collaboration diagram for tools::error::not_enough_unlocked_etn:

Public Member Functions

 not_enough_unlocked_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< Base >
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< Base >
 wallet_error_base (std::string &&loc, const std::string &message)
 

Detailed Description

Definition at line 474 of file wallet_errors.h.

Constructor & Destructor Documentation

◆ not_enough_unlocked_etn()

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

Definition at line 476 of file wallet_errors.h.

477  : transfer_error(std::move(loc), "not enough unlocked ETN")
478  , m_available(available)
479  , m_tx_amount(tx_amount)
480  {
481  }
transfer_error(std::string &&loc, const std::string &message)
const T & move(const T &t)
Definition: gtest-port.h:1317

Member Function Documentation

◆ available()

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

Definition at line 483 of file wallet_errors.h.

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

◆ to_string()

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

Definition at line 486 of file wallet_errors.h.

487  {
488  std::ostringstream ss;
489  ss << transfer_error::to_string() <<
490  ", available = " << cryptonote::print_etn(m_available) <<
491  ", tx_amount = " << cryptonote::print_etn(m_tx_amount);
492  return ss.str();
493  }
std::string print_etn(uint64_t amount, unsigned int decimal_point)
std::string to_string() const
Here is the call graph for this function:

◆ tx_amount()

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

Definition at line 484 of file wallet_errors.h.

484 { return m_tx_amount; }
Here is the caller graph for this function:

The documentation for this struct was generated from the following file: