userver: proto_structs::ReadError Class Reference
Loading...
Searching...
No Matches
proto_structs::ReadError Class Referencefinal

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

Detailed Description

Error reading proto struct from protobuf message.

Definition at line 28 of file exceptions.hpp.

+ Inheritance diagram for proto_structs::ReadError:

Public Member Functions

 ReadError (std::string_view path, std::string_view reason)
 Creates error with information what protobuf message field was considered invalid Parameter path contains dot-separated field names from the top-level message up to erroneous field, for example, "msg.field.nested_field".
 

Constructor & Destructor Documentation

◆ ReadError()

proto_structs::ReadError::ReadError ( std::string_view path,
std::string_view reason )

Creates error with information what protobuf message field was considered invalid Parameter path contains dot-separated field names from the top-level message up to erroneous field, for example, "msg.field.nested_field".

Definition at line 9 of file exceptions.cpp.


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