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 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=0
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

◆ ErrorCodeType

◆ ErrorMessageType

◆ QueryErrorResponseVariantType

Member Function Documentation

◆ errorCode()

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

◆ errorMessage()

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

Implemented in shared_model::proto::ErrorQueryResponse.

Here is the caller graph for this function:

◆ get()

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

Implemented in shared_model::proto::ErrorQueryResponse.

Here is the caller graph for this function:

◆ operator==()

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

◆ toString()

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

Make string developer representation of object

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: