hyperledger/iroha
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

Public Types

using ProtoQueryErrorResponseVariantType = boost::variant< StatelessFailedErrorResponse, StatefulFailedErrorResponse, NoAccountErrorResponse, NoAccountAssetsErrorResponse, NoAccountDetailErrorResponse, NoSignatoriesErrorResponse, NotSupportedErrorResponse, NoAssetErrorResponse, NoRolesErrorResponse >
 type of proto variant More...
 
using ProtoQueryErrorResponseListType = ProtoQueryErrorResponseVariantType::types
 list of types in proto variant More...
 
- 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
 

Public Member Functions

 ErrorQueryResponse (iroha::protocol::QueryResponse &query_response)
 
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
 
virtual ~ModelPrimitive ()=default
 

Member Typedef Documentation

using shared_model::proto::ErrorQueryResponse::ProtoQueryErrorResponseListType = ProtoQueryErrorResponseVariantType::types

list of types in proto variant

Constructor & Destructor Documentation

shared_model::proto::ErrorQueryResponse::ErrorQueryResponse ( iroha::protocol::QueryResponse &  query_response)
explicit

Member Function Documentation

ErrorQueryResponse::ErrorCodeType shared_model::proto::ErrorQueryResponse::errorCode ( ) const
overridevirtual
Returns
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.

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

Implements shared_model::interface::ErrorQueryResponse.

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

Implements shared_model::interface::ErrorQueryResponse.


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