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

#include "proto_error_query_response.hpp"

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


struct  Impl

Public Member Functions

 ErrorQueryResponse (iroha::protocol::QueryResponse &query_response)
 ErrorQueryResponse (ErrorQueryResponse &&o) noexcept
 ~ErrorQueryResponse () override
const QueryErrorResponseVariantTypeget () const override
const ErrorMessageTypeerrorMessage () const override
ErrorCodeType errorCode () const override
- Public Member Functions inherited from shared_model::interface::ErrorQueryResponse
std::string toString () const override
bool operator== (const ModelType &rhs) const override
- Public Member Functions inherited from shared_model::interface::ModelPrimitive< ErrorQueryResponse >
virtual bool operator== (const ModelType &rhs) const=0
virtual bool operator!= (const ModelType &rhs) const
virtual ~ModelPrimitive ()=default

Additional Inherited Members

- Public Types inherited from shared_model::interface::ErrorQueryResponse
using QueryErrorResponseVariantType = w< StatelessFailedErrorResponse, StatefulFailedErrorResponse, NoAccountErrorResponse, NoAccountAssetsErrorResponse, NoAccountDetailErrorResponse, NoSignatoriesErrorResponse, NotSupportedErrorResponse, NoAssetErrorResponse, NoRolesErrorResponse >
 Type of container with all concrete error query responses. More...
using QueryResponseListType = QueryErrorResponseVariantType::types
 Type list with all concrete query error responses. More...
using ErrorMessageType = std::string
 Message type. More...
using ErrorCodeType = uint32_t
 Error code type. More...
- Public Types inherited from shared_model::interface::ModelPrimitive< ErrorQueryResponse >
using ModelType = ErrorQueryResponse

Constructor & Destructor Documentation

◆ ErrorQueryResponse() [1/2]

shared_model::proto::ErrorQueryResponse::ErrorQueryResponse ( iroha::protocol::QueryResponse &  query_response)
Here is the call graph for this function:

◆ ErrorQueryResponse() [2/2]

shared_model::proto::ErrorQueryResponse::ErrorQueryResponse ( ErrorQueryResponse &&  o)

◆ ~ErrorQueryResponse()

shared_model::proto::ErrorQueryResponse::~ErrorQueryResponse ( )
Here is the caller graph for this function:

Member Function Documentation

◆ errorCode()

ErrorQueryResponse::ErrorCodeType shared_model::proto::ErrorQueryResponse::errorCode ( ) const
stateful error code of this query response: 0 - error is in query's type, it is not a stateful one 1 - internal error 2 - not enough permissions 3 - invalid signatures

Implements shared_model::interface::ErrorQueryResponse.

◆ errorMessage()

const ErrorQueryResponse::ErrorMessageType & shared_model::proto::ErrorQueryResponse::errorMessage ( ) const
error message if present, otherwise - an empty string

Implements shared_model::interface::ErrorQueryResponse.

◆ get()

const ErrorQueryResponse::QueryErrorResponseVariantType & shared_model::proto::ErrorQueryResponse::get ( ) const
reference to const variant with concrete error response

Implements shared_model::interface::ErrorQueryResponse.

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