userver: proto_structs::AnyUnpackError Class Reference
Loading...
Searching...
No Matches
proto_structs::AnyUnpackError Class Reference

#include </data/code/userver/libraries/proto-structs/include/userver/proto-structs/exceptions.hpp>

Detailed Description

Error unpacking protobuf message from proto_structs::Any underlying storage.

The main reason of this exception is the attempt to unpack message type different from the one stored in the proto_structs::Any underlying storage.

Definition at line 71 of file exceptions.hpp.

+ Inheritance diagram for proto_structs::AnyUnpackError:

Public Member Functions

 AnyUnpackError (std::string_view message_name)
 Creates error with information what protobuf message was not unpacked.
 

Constructor & Destructor Documentation

◆ AnyUnpackError()

proto_structs::AnyUnpackError::AnyUnpackError ( std::string_view message_name)
explicit

Creates error with information what protobuf message was not unpacked.

Definition at line 21 of file exceptions.cpp.


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