hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
proto_block_error_response.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SHARED_MODEL_PROTO_BLOCK_ERROR_RESPONSE_HPP
7 #define IROHA_SHARED_MODEL_PROTO_BLOCK_ERROR_RESPONSE_HPP
8 
11 #include "qry_responses.pb.h"
12 
13 namespace shared_model {
14  namespace proto {
15  class BlockErrorResponse final
16  : public CopyableProto<interface::BlockErrorResponse,
17  iroha::protocol::BlockQueryResponse,
18  BlockErrorResponse> {
19  public:
20  template <typename QueryResponseType>
21  explicit BlockErrorResponse(QueryResponseType &&queryResponse);
22 
24 
26 
27  const interface::types::DescriptionType &message() const override;
28 
29  private:
30  const iroha::protocol::BlockErrorResponse &block_error_response;
31 
32  const interface::types::DescriptionType message_;
33  };
34  } // namespace proto
35 } // namespace shared_model
36 
37 #endif // IROHA_SHARED_MODEL_PROTO_BLOCK_ERROR_RESPONSE_HPP
const interface::types::DescriptionType & message() const override
Definition: proto_block_error_response.cpp:30
std::string DescriptionType
Type of the transfer message.
Definition: types.hpp:79
Definition: proto_block_error_response.hpp:15
Definition: command_executor.hpp:12
Definition: trivial_proto.hpp:45
BlockErrorResponse(QueryResponseType &&queryResponse)
Definition: proto_block_error_response.cpp:12