#include </data/code/userver/libraries/protobuf/include/userver/protobuf/json/exceptions.hpp>
JSON/protobuf conversion error information.
| TErrorCode | error code type |
Definition at line 47 of file exceptions.hpp.
Public Types | |
| using | ErrorCodeType = TErrorCode |
Public Member Functions | |
| ConversionErrorInfo (const ErrorCodeType code, std::string path) noexcept | |
| Creates error information for invalid JSON/protobuf field identified by path . See ConversionErrorInfo::GetPath for more information about path format. | |
| ErrorCodeType | GetCode () const noexcept |
| Returns error code. | |
| const std::string & | GetPath () const &noexcept |
| Returns invalid field path. Parameter path format depends on the conversion direction: | |
| std::string | GetPath () &&noexcept |
| Returns invalid field path. See ConversionErrorInfo::GetPath for more information about path format. | |
| using protobuf::json::ConversionErrorInfo< TErrorCode >::ErrorCodeType = TErrorCode |
Definition at line 49 of file exceptions.hpp.
|
inlinenoexcept |
Creates error information for invalid JSON/protobuf field identified by path . See ConversionErrorInfo::GetPath for more information about path format.
Definition at line 53 of file exceptions.hpp.
|
inlinenodiscardnoexcept |
Returns error code.
Definition at line 56 of file exceptions.hpp.
|
inlinenodiscardnoexcept |
Returns invalid field path. See ConversionErrorInfo::GetPath for more information about path format.
Definition at line 72 of file exceptions.hpp.
|
inlinenodiscardnoexcept |
Returns invalid field path. Parameter path format depends on the conversion direction:
Definition at line 68 of file exceptions.hpp.