#include <userver/server/handlers/exceptions.hpp>
Exception class for situations when request preconditions have failed. Corresponds to HTTP code 400.
- Examples
- postgresql/functional_tests/basic_chaos/postgres_service.cpp, samples/postgres_service/main.cpp, and samples/redis_service/main.cpp.
Definition at line 321 of file exceptions.hpp.
◆ BaseType
◆ ExternalBody
◆ ExtraHeaders
◆ HandlerErrorCode
◆ InternalMessage
◆ ServiceErrorCode
◆ GetCode()
◆ GetDetails()
◆ GetExternalErrorBody()
const std::string & server::handlers::CustomHandlerException::GetExternalErrorBody |
( |
| ) |
const |
|
inlineinherited |
◆ GetExtraHeaders()
const Headers & server::handlers::CustomHandlerException::GetExtraHeaders |
( |
| ) |
const |
|
inlineinherited |
◆ GetServiceCode()
const std::string & server::handlers::CustomHandlerException::GetServiceCode |
( |
| ) |
const |
|
inlineinherited |
◆ IsExternalErrorBodyFormatted()
bool server::handlers::CustomHandlerException::IsExternalErrorBodyFormatted |
( |
| ) |
const |
|
inlineinherited |
◆ kDefaultCode
The documentation for this class was generated from the following file: