userver: server::handlers::LegacyJsonErrorBuilder Class Reference
Loading...
Searching...
No Matches
server::handlers::LegacyJsonErrorBuilder Class Reference

#include <userver/server/handlers/legacy_json_error_builder.hpp>

Detailed Description

Legacy JSON error message builder that returns "code" as an integer. Consider using JsonErrorBuilder instead

Definition at line 15 of file legacy_json_error_builder.hpp.

Public Member Functions

 LegacyJsonErrorBuilder (const CustomHandlerException &ex)
 
 LegacyJsonErrorBuilder (http::HttpStatus status, std::string internal_message, std::string external_error_body)
 
 LegacyJsonErrorBuilder (http::HttpStatus status, std::string internal_message, std::string external_error_body, const formats::json::Value &details)
 
const std::string & GetInternalMessage () const
 
const std::string & GetExternalBody () const
 

Static Public Member Functions

static const ::http::ContentTypeGetContentType ()
 

Static Public Attributes

static constexpr bool kIsExternalBodyFormatted = true
 

Member Function Documentation

◆ GetContentType()

static const ::http::ContentType & server::handlers::LegacyJsonErrorBuilder::GetContentType ( )
inlinestatic

Definition at line 34 of file legacy_json_error_builder.hpp.

◆ GetExternalBody()

const std::string & server::handlers::LegacyJsonErrorBuilder::GetExternalBody ( ) const
inline

Definition at line 32 of file legacy_json_error_builder.hpp.

◆ GetInternalMessage()

const std::string & server::handlers::LegacyJsonErrorBuilder::GetInternalMessage ( ) const
inline

Definition at line 30 of file legacy_json_error_builder.hpp.

Member Data Documentation

◆ kIsExternalBodyFormatted

constexpr bool server::handlers::LegacyJsonErrorBuilder::kIsExternalBodyFormatted = true
staticconstexpr

Definition at line 17 of file legacy_json_error_builder.hpp.


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