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

#include <wallet_errors.h>

Inheritance diagram for tools::error::tx_rejected:
Collaboration diagram for tools::error::tx_rejected:

Public Member Functions

 tx_rejected (std::string &&loc, const cryptonote::transaction &tx, const std::string &status, const std::string &reason)
const cryptonote::transactiontx () const
const std::string & status () const
const std::string & reason () 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 652 of file wallet_errors.h.

Constructor & Destructor Documentation

◆ tx_rejected()

tools::error::tx_rejected::tx_rejected ( std::string && loc,
const cryptonote::transaction & tx,
const std::string & status,
const std::string & reason )
inlineexplicit

Definition at line 654 of file wallet_errors.h.

655 : transfer_error(std::move(loc), "transaction was rejected by daemon")
656 , m_tx(tx)
657 , m_status(status)
658 , m_reason(reason)
659 {
660 }
transfer_error(std::string &&loc, const std::string &message)
const cryptonote::transaction & tx() const
const std::string & reason() const
const std::string & status() const
Here is the call graph for this function:

Member Function Documentation

◆ reason()

const std::string & tools::error::tx_rejected::reason ( ) const
inline

Definition at line 664 of file wallet_errors.h.

664{ return m_reason; }
Here is the caller graph for this function:

◆ status()

const std::string & tools::error::tx_rejected::status ( ) const
inline

Definition at line 663 of file wallet_errors.h.

663{ return m_status; }
Here is the caller graph for this function:

◆ to_string()

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

Definition at line 666 of file wallet_errors.h.

667 {
668 std::ostringstream ss;
669 ss << transfer_error::to_string() << ", status = " << m_status << ", tx:\n";
670 cryptonote::transaction tx = m_tx;
672 if (!m_reason.empty())
673 {
674 ss << " (" << m_reason << ")";
675 }
676 return ss.str();
677 }
std::string obj_to_json_str(T &obj)
Here is the call graph for this function:

◆ tx()

const cryptonote::transaction & tools::error::tx_rejected::tx ( ) const
inline

Definition at line 662 of file wallet_errors.h.

662{ return m_tx; }
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