#include <userver/server/handlers/json_error_builder.hpp>
JSON error message builder. Useful for handlers derived from HttpHandlerBase but responding via JSON.
Definition at line 17 of file json_error_builder.hpp.
Public Member Functions | |
| JsonErrorBuilder (const CustomHandlerException &ex) | |
| JsonErrorBuilder (std::string_view error_code, std::string internal_message, std::string_view external_error_body, formats::json::Value={}) | |
| const std::string & | GetInternalMessage () const |
| const std::string & | GetExternalBody () const |
Static Public Member Functions | |
| static const ::http::ContentType & | GetContentType () |
Static Public Attributes | |
| static constexpr bool | kIsExternalBodyFormatted = true |
|
inlinestatic |
Definition at line 34 of file json_error_builder.hpp.
|
inline |
Definition at line 32 of file json_error_builder.hpp.
|
inline |
Definition at line 30 of file json_error_builder.hpp.
|
staticconstexpr |
Definition at line 19 of file json_error_builder.hpp.