#include <userver/server/handlers/exceptions.hpp>
Base class for handler exceptions. For common HandlerErrorCode values you can use more specific exception classes below. For less common HandlerErrorCode values, this class can be used directly.
Definition at line 318 of file exceptions.hpp.
Public Types | |
using | BaseType = ExceptionWithCode<kDefaultCode> |
using | HandlerErrorCode = handlers::HandlerErrorCode |
using | ServiceErrorCode = handlers::ServiceErrorCode |
using | InternalMessage = handlers::InternalMessage |
using | ExternalBody = handlers::ExternalBody |
using | ExtraHeaders = handlers::ExtraHeaders |
Public Member Functions | |
ExceptionWithCode (const ExceptionWithCode< Code > &)=default | |
ExceptionWithCode (ExceptionWithCode< Code > &&) noexcept=default | |
template<typename... Args> | |
ExceptionWithCode (Args &&... args) | |
HandlerErrorCode | GetCode () const |
const std::string & | GetServiceCode () const |
bool | IsExternalErrorBodyFormatted () const |
const std::string & | GetExternalErrorBody () const |
const formats::json::Value & | GetDetails () const |
const Headers & | GetExtraHeaders () const |
Static Public Attributes | |
static constexpr HandlerErrorCode | kDefaultCode = Code |
using server::handlers::ExceptionWithCode< Code >::BaseType = ExceptionWithCode<kDefaultCode> |
Definition at line 321 of file exceptions.hpp.
|
inherited |
Definition at line 216 of file exceptions.hpp.
|
inherited |
Definition at line 217 of file exceptions.hpp.
|
inherited |
Definition at line 213 of file exceptions.hpp.
|
inherited |
Definition at line 215 of file exceptions.hpp.
|
inherited |
Definition at line 214 of file exceptions.hpp.
|
inlineexplicit |
Definition at line 328 of file exceptions.hpp.
|
inlineinherited |
Definition at line 294 of file exceptions.hpp.
|
inlineinherited |
Definition at line 306 of file exceptions.hpp.
|
inlineinherited |
Definition at line 302 of file exceptions.hpp.
|
inlineinherited |
Definition at line 308 of file exceptions.hpp.
|
inlineinherited |
Definition at line 296 of file exceptions.hpp.
|
inlineinherited |
Definition at line 298 of file exceptions.hpp.
|
staticconstexpr |
Definition at line 320 of file exceptions.hpp.