hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
shared_model::proto::TransactionResponse Class Referencefinal

#include "proto_tx_response.hpp"

Inheritance diagram for shared_model::proto::TransactionResponse:
Inheritance graph
Collaboration diagram for shared_model::proto::TransactionResponse:
Collaboration graph

Classes

struct  Impl
 

Public Types

using TransportType = iroha::protocol::ToriiResponse
 
- Public Types inherited from shared_model::interface::TransactionResponse
enum  PrioritiesComparisonResult { PrioritiesComparisonResult::kLess, PrioritiesComparisonResult::kEqual, PrioritiesComparisonResult::kGreater }
 
using ResponseVariantType = wrap< StatelessFailedTxResponse, StatelessValidTxResponse, StatefulFailedTxResponse, StatefulValidTxResponse, RejectedTxResponse, CommittedTxResponse, MstExpiredResponse, NotReceivedTxResponse, MstPendingResponse, EnoughSignaturesCollectedResponse >
 Type of variant, that handle all concrete tx responses in the system. More...
 
using TransactionHashType = interface::types::HashType
 Type of transaction hash. More...
 
using StatelessErrorOrFailedCommandNameType = std::string
 
using FailedCommandIndexType = size_t
 Type of command index, which failed validation. More...
 
using ErrorCodeType = uint32_t
 Type of command error code. More...
 
- Public Types inherited from shared_model::interface::ModelPrimitive< TransactionResponse >
using ModelType = TransactionResponse
 

Public Member Functions

 TransactionResponse (const TransactionResponse &r)
 
 TransactionResponse (TransactionResponse &&r) noexcept
 
 TransactionResponse (const TransportType &ref)
 
 TransactionResponse (TransportType &&ref)
 
 ~TransactionResponse () override
 
const interface::types::HashTypetransactionHash () const override
 
const ResponseVariantTypeget () const override
 
const StatelessErrorOrFailedCommandNameTypestatelessErrorOrCommandName () const override
 
FailedCommandIndexType failedCommandIndex () const override
 
ErrorCodeType errorCode () const override
 
const TransportTypegetTransport () const
 
- Public Member Functions inherited from shared_model::interface::TransactionResponse
PrioritiesComparisonResult comparePriorities (const ModelType &other) const noexcept
 
std::string toString () const override
 
bool operator== (const ModelType &rhs) const override
 
- Public Member Functions inherited from shared_model::interface::ModelPrimitive< TransactionResponse >
virtual bool operator!= (const ModelType &rhs) const
 
virtual ~ModelPrimitive ()=default
 

Additional Inherited Members

Detailed Description

TransactionResponse is a status of transaction in system

Member Typedef Documentation

using shared_model::proto::TransactionResponse::TransportType = iroha::protocol::ToriiResponse

Constructor & Destructor Documentation

TransactionResponse::TransactionResponse ( const TransactionResponse r)
TransactionResponse::TransactionResponse ( TransactionResponse &&  r)
defaultnoexcept
TransactionResponse::TransactionResponse ( const TransportType ref)
explicit
TransactionResponse::TransactionResponse ( TransportType &&  ref)
explicit

Here is the call graph for this function:

TransactionResponse::~TransactionResponse ( )
overridedefault

Here is the caller graph for this function:

Member Function Documentation

TransactionResponse::ErrorCodeType TransactionResponse::errorCode ( ) const
overridevirtual
Returns
error code, with which the command failed

Implements shared_model::interface::TransactionResponse.

TransactionResponse::FailedCommandIndexType TransactionResponse::failedCommandIndex ( ) const
overridevirtual
Returns
index of failed command

Implements shared_model::interface::TransactionResponse.

const TransactionResponse::ResponseVariantType & TransactionResponse::get ( ) const
overridevirtual
Returns
attached interface tx response

Implements shared_model::interface::TransactionResponse.

const TransactionResponse::TransportType & TransactionResponse::getTransport ( ) const
const TransactionResponse::StatelessErrorOrFailedCommandNameType & TransactionResponse::statelessErrorOrCommandName ( ) const
overridevirtual
Returns
name of the failed command, if present; empty string otherwise

Implements shared_model::interface::TransactionResponse.

const interface::types::HashType & TransactionResponse::transactionHash ( ) const
overridevirtual
Returns
hash of corresponding transaction

Implements shared_model::interface::TransactionResponse.


The documentation for this class was generated from the following files: