Github   Telegram
Loading...
Searching...
No Matches
List of all members
server::handlers::InternalServerError Class Reference

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

+ Inheritance diagram for server::handlers::InternalServerError:
+ Collaboration diagram for server::handlers::InternalServerError:

Additional Inherited Members

- Public Types inherited from server::handlers::ExceptionWithCode< HandlerErrorCode::kServerSideError >
using BaseType = ExceptionWithCode< kDefaultCode >
 
- Public Types inherited from server::handlers::CustomHandlerException
using HandlerErrorCode = handlers::HandlerErrorCode
 
using ServiceErrorCode = handlers::ServiceErrorCode
 
using InternalMessage = handlers::InternalMessage
 
using ExternalBody = handlers::ExternalBody
 
using ExtraHeaders = handlers::ExtraHeaders
 
- Public Member Functions inherited from server::handlers::ExceptionWithCode< HandlerErrorCode::kServerSideError >
 ExceptionWithCode (const ExceptionWithCode< Code > &)=default
 
 ExceptionWithCode (ExceptionWithCode< Code > &&) noexcept=default
 
 ExceptionWithCode (Args &&... args)
 
- Public Member Functions inherited from server::handlers::CustomHandlerException
 CustomHandlerException (impl::CustomHandlerExceptionData data)
 
 CustomHandlerException (ServiceErrorCode service_code, ExternalBody external_body, InternalMessage internal_message, HandlerErrorCode handler_code, ExtraHeaders headers={}, formats::json::Value details={})
 
template<typename MessageBuilder >
 CustomHandlerException (MessageBuilder &&builder, HandlerErrorCode handler_code)
 
HandlerErrorCode GetCode () const
 
const std::string & GetServiceCode () const
 
bool IsExternalErrorBodyFormatted () const
 
const std::string & GetExternalErrorBody () const
 
const formats::json::ValueGetDetails () const
 
const Headers & GetExtraHeaders () const
 
- Static Public Attributes inherited from server::handlers::ExceptionWithCode< HandlerErrorCode::kServerSideError >
static constexpr HandlerErrorCode kDefaultCode
 
- Static Public Attributes inherited from server::handlers::CustomHandlerException
static constexpr HandlerErrorCode kDefaultCode
 

Detailed Description

Base exception class for situations when an exception occurred while processing the request.

Examples
samples/redis_service/redis_service.cpp.

Definition at line 344 of file exceptions.hpp.


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