hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
shared_model::interface::ErrorQueryResponse Class Referenceabstract

#include "error_query_response.hpp"

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

Public Types

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

virtual const QueryErrorResponseVariantTypeget () const =0
 
virtual const ErrorMessageTypeerrorMessage () const =0
 
virtual ErrorCodeType errorCode () const =0
 
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
 

Detailed Description

QueryErrorResponse interface container for all concrete error responses possible achieved in the system.

Member Typedef Documentation

using shared_model::interface::ErrorQueryResponse::QueryResponseListType = QueryErrorResponseVariantType::types

Type list with all concrete query error responses.

Member Function Documentation

virtual ErrorCodeType shared_model::interface::ErrorQueryResponse::errorCode ( ) const
pure virtual
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

Implemented in shared_model::proto::ErrorQueryResponse.

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

Implemented in shared_model::proto::ErrorQueryResponse.

Here is the caller graph for this function:

virtual const QueryErrorResponseVariantType& shared_model::interface::ErrorQueryResponse::get ( ) const
pure virtual
Returns
reference to const variant with concrete error response

Implemented in shared_model::proto::ErrorQueryResponse.

Here is the caller graph for this function:

bool shared_model::interface::ErrorQueryResponse::operator== ( const ModelType rhs) const
overridevirtual

Implements shared_model::interface::ModelPrimitive< ErrorQueryResponse >.

Here is the call graph for this function:

std::string shared_model::interface::ErrorQueryResponse::toString ( ) const
overridevirtual

Make string developer representation of object

Returns
string with internal state of object

Reimplemented from shared_model::interface::ModelPrimitive< ErrorQueryResponse >.

Here is the call graph for this function:


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