#include </data/code/userver/libraries/protobuf/include/userver/protobuf/json/exceptions.hpp>
JSON/protobuf conversion error.
| TErrorCode | error code type |
Definition at line 102 of file exceptions.hpp.
Inheritance diagram for protobuf::json::ConversionError< TErrorCode >:Public Types | |
| using | ErrorInfoType = ConversionErrorInfo<TErrorCode> |
| using | ErrorCodeType = typename ErrorInfoType::ErrorCodeType |
Public Member Functions | |
| ConversionError (ErrorCodeType code, std::string path) | |
| Creates error for invalid json/protobuf field identified by path . See ConversionErrorInfo::ConversionErrorInfo for more information about path format. | |
| const ErrorInfoType & | GetErrorInfo () const &noexcept |
| Returns information about occurred error. | |
| ErrorInfoType | GetErrorInfo () &&noexcept |
| Returns information about occurred error. | |
| using protobuf::json::ConversionError< TErrorCode >::ErrorCodeType = typename ErrorInfoType::ErrorCodeType |
Definition at line 105 of file exceptions.hpp.
| using protobuf::json::ConversionError< TErrorCode >::ErrorInfoType = ConversionErrorInfo<TErrorCode> |
Definition at line 104 of file exceptions.hpp.
| protobuf::json::ConversionError< TErrorCode >::ConversionError | ( | ErrorCodeType | code, |
| std::string | path ) |
Creates error for invalid json/protobuf field identified by path . See ConversionErrorInfo::ConversionErrorInfo for more information about path format.
Definition at line 51 of file exceptions.cpp.
|
inlinenodiscardnoexcept |
Returns information about occurred error.
Definition at line 115 of file exceptions.hpp.
|
inlinenodiscardnoexcept |
Returns information about occurred error.
Definition at line 112 of file exceptions.hpp.