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::proto::CopyableProto< interface::ErrorQueryResponse, iroha::protocol::QueryResponse, ErrorQueryResponse >
using TransportType = iroha::protocol::QueryResponse
 
- 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 Types inherited from Cloneable< ModelPrimitive< ErrorQueryResponse > >
using base_type = ModelPrimitive< ErrorQueryResponse >
 

Public Member Functions

template<typename QueryResponseType >
 ErrorQueryResponse (QueryResponseType &&response)
 
 ErrorQueryResponse (const ErrorQueryResponse &o)
 
 ErrorQueryResponse (ErrorQueryResponse &&o) noexcept
 
const QueryErrorResponseVariantTypeget () const override
 
const ErrorMessageTypeerrorMessage () const override
 
ErrorCodeType errorCode () const override
 
- Public Member Functions inherited from shared_model::proto::CopyableProto< interface::ErrorQueryResponse, iroha::protocol::QueryResponse, ErrorQueryResponse >
 CopyableProto (ProtoLoader &&ref)
 
const iroha::protocol::QueryResponse & getTransport () const
 
- 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
 
- Public Member Functions inherited from Cloneable< ModelPrimitive< ErrorQueryResponse > >
virtual ~Cloneable ()=default
 

Additional Inherited Members

- Protected Member Functions inherited from shared_model::proto::CopyableProto< interface::ErrorQueryResponse, iroha::protocol::QueryResponse, ErrorQueryResponse >
interface::ErrorQueryResponse::ModelTypeclone () const overridefinal
 
- Protected Attributes inherited from shared_model::proto::CopyableProto< interface::ErrorQueryResponse, iroha::protocol::QueryResponse, ErrorQueryResponse >
detail::ReferenceHolder< iroha::protocol::QueryResponse > proto_
 

Member Typedef Documentation

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

list of types in proto variant

Constructor & Destructor Documentation

template<typename QueryResponseType >
shared_model::proto::ErrorQueryResponse::ErrorQueryResponse ( QueryResponseType &&  response)
explicit
shared_model::proto::ErrorQueryResponse::ErrorQueryResponse ( const ErrorQueryResponse o)
shared_model::proto::ErrorQueryResponse::ErrorQueryResponse ( ErrorQueryResponse &&  o)
noexcept

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: