Electroneum
tools::error::unexpected_txout_type Struct Reference

#include <wallet_errors.h>

Inheritance diagram for tools::error::unexpected_txout_type:
Collaboration diagram for tools::error::unexpected_txout_type:

Public Member Functions

 unexpected_txout_type (std::string &&loc, const cryptonote::transaction &tx)
 
const cryptonote::transactiontx () const
 
std::string to_string () const
 
- Public Member Functions inherited from tools::error::wallet_internal_error
 wallet_internal_error (std::string &&loc, const std::string &message)
 
- 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::wallet_error_base< Base >
 wallet_error_base (std::string &&loc, const std::string &message)
 

Detailed Description

Definition at line 193 of file wallet_errors.h.

Constructor & Destructor Documentation

◆ unexpected_txout_type()

tools::error::unexpected_txout_type::unexpected_txout_type ( std::string &&  loc,
const cryptonote::transaction tx 
)
inlineexplicit

Definition at line 195 of file wallet_errors.h.

196  : wallet_internal_error(std::move(loc), "one of tx outputs has unexpected type")
197  , m_tx(tx)
198  {
199  }
const cryptonote::transaction & tx() const
const T & move(const T &t)
Definition: gtest-port.h:1317
wallet_internal_error(std::string &&loc, const std::string &message)

Member Function Documentation

◆ to_string()

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

Definition at line 203 of file wallet_errors.h.

204  {
205  std::ostringstream ss;
208  return ss.str();
209  }
const cryptonote::transaction & tx() const
std::string to_string() const
std::string obj_to_json_str(T &obj)
Here is the call graph for this function:

◆ tx()

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

Definition at line 201 of file wallet_errors.h.

201 { return m_tx; }
Here is the caller graph for this function:

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