Electroneum
tools::error::unexpected_txin_type Struct Reference

#include <wallet_errors.h>

Inheritance diagram for tools::error::unexpected_txin_type:
Collaboration diagram for tools::error::unexpected_txin_type:

Public Member Functions

 unexpected_txin_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 171 of file wallet_errors.h.

Constructor & Destructor Documentation

◆ unexpected_txin_type()

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

Definition at line 173 of file wallet_errors.h.

174  : wallet_internal_error(std::move(loc), "one of tx inputs has unexpected type")
175  , m_tx(tx)
176  {
177  }
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_txin_type::to_string ( ) const
inline

Definition at line 181 of file wallet_errors.h.

182  {
183  std::ostringstream ss;
186  return ss.str();
187  }
std::string to_string() const
const cryptonote::transaction & tx() const
std::string obj_to_json_str(T &obj)
Here is the call graph for this function:

◆ tx()

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

Definition at line 179 of file wallet_errors.h.

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

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