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

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

Detailed Description

Error writing proto struct to protobuf message.

Definition at line 37 of file exceptions.hpp.

+ Inheritance diagram for proto_structs::WriteError:

Public Member Functions

 WriteError (std::string_view path, std::string_view reason)
 Creates error with information what protobuf message field was not correctly initialized Parameter path contains dot-separated field names from the top-level message up to field that was not initialized, for example, "msg.field.nested_field".
 

Constructor & Destructor Documentation

◆ WriteError()

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

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

Definition at line 12 of file exceptions.cpp.


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