userver: server::handlers::ResourceNotFound Class Reference
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
server::handlers::ResourceNotFound Class Reference

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

Detailed Description

Exception class for situations when some requested entity could not be accessed, because it does not exist. Corresponds to HTTP code 404.

Definition at line 342 of file exceptions.hpp.

+ Inheritance diagram for server::handlers::ResourceNotFound:

Public Types

using BaseType
 
using HandlerErrorCode
 
using ServiceErrorCode
 
using InternalMessage
 
using ExternalBody
 
using ExtraHeaders
 

Public Member Functions

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

static constexpr HandlerErrorCode kDefaultCode
 

Member Typedef Documentation

◆ BaseType

using server::handlers::ExceptionWithCode< Code >::BaseType
inherited

Definition at line 309 of file exceptions.hpp.

◆ ExternalBody

Definition at line 206 of file exceptions.hpp.

◆ ExtraHeaders

Definition at line 207 of file exceptions.hpp.

◆ HandlerErrorCode

◆ InternalMessage

◆ ServiceErrorCode

Member Function Documentation

◆ GetCode()

HandlerErrorCode server::handlers::CustomHandlerException::GetCode ( ) const
inlineinherited

Definition at line 286 of file exceptions.hpp.

◆ GetDetails()

const formats::json::Value & server::handlers::CustomHandlerException::GetDetails ( ) const
inlineinherited

Definition at line 294 of file exceptions.hpp.

◆ GetExternalErrorBody()

const std::string & server::handlers::CustomHandlerException::GetExternalErrorBody ( ) const
inlineinherited

Definition at line 292 of file exceptions.hpp.

◆ GetExtraHeaders()

const Headers & server::handlers::CustomHandlerException::GetExtraHeaders ( ) const
inlineinherited

Definition at line 296 of file exceptions.hpp.

◆ GetServiceCode()

const std::string & server::handlers::CustomHandlerException::GetServiceCode ( ) const
inlineinherited

Definition at line 288 of file exceptions.hpp.

◆ IsExternalErrorBodyFormatted()

bool server::handlers::CustomHandlerException::IsExternalErrorBodyFormatted ( ) const
inlineinherited

Definition at line 290 of file exceptions.hpp.

Member Data Documentation

◆ kDefaultCode

HandlerErrorCode server::handlers::ExceptionWithCode< Code >::kDefaultCode
staticconstexprinherited

Definition at line 308 of file exceptions.hpp.


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