userver
C++ Async Framework
Loading...
Searching...
No Matches
exceptions.cpp
1
#
include
<
userver
/
proto
-
structs
/
exceptions
.
hpp
>
2
3
#
include
<
fmt
/
format
.
h
>
4
5
USERVER_NAMESPACE_BEGIN
6
7
namespace
proto_structs {
8
9
ReadError::ReadError(
const
std::string_view path,
const
std::string_view reason)
10
: ConversionError(fmt::format(
"Failed to read protobuf message field '{}' ({})"
, path, reason))
11
{}
12
13
WriteError::WriteError(
const
std::string_view path,
const
std::string_view reason)
14
: ConversionError(fmt::format(
"Failed to write protobuf message field '{}' ({})"
, path, reason))
15
{}
16
17
OneofAccessError::OneofAccessError(
const
std::size_t field_idx)
18
: Error(fmt::format(
"Oneof field is not set (index = {})"
, field_idx))
19
{}
20
21
AnyPackError::AnyPackError(
const
std::string_view message_name)
22
: Error(fmt::format(
"Failed to pack message '{}' to 'google.protobuf.Any'"
, message_name))
23
{}
24
25
AnyUnpackError::AnyUnpackError(
const
std::string_view message_name)
26
: Error(fmt::format(
"Failed to unpack message '{}' from 'google.protobuf.Any'"
, message_name))
27
{}
28
29
}
// namespace proto_structs
30
31
USERVER_NAMESPACE_END
proto-structs
src
proto-structs
exceptions.cpp
Generated on Wed Jan 14 2026 19:59:20 for userver by
Doxygen
1.13.2