LeftHookRoll
An HTTP/1.0 compliant web server, as specified by RFC1945
Loading...
Searching...
No Matches
ClientException Class Reference

Exception type for failures scoped to a single client request. More...

#include <FatalExceptions.hpp>

Inheritance diagram for ClientException:
Collaboration diagram for ClientException:

Public Member Functions

 ClientException (int statusCode, const std::string &msg)
 
 ClientException (const ClientException &other)
 
ClientExceptionoperator= (const ClientException &other)
 
virtual ~ClientException () throw ()
 
virtual const char * what () const throw ()
 
int getStatusCode () const
 

Private Attributes

int _statusCode
 
std::string _msg
 

Detailed Description

Exception type for failures scoped to a single client request.

Throw this from request/response/CGI runtime paths when the server stays operable and the connection should produce an HTTP error response.

Definition at line 30 of file FatalExceptions.hpp.

Constructor & Destructor Documentation

◆ ClientException() [1/2]

ClientException::ClientException ( int  statusCode,
const std::string &  msg 
)

Definition at line 21 of file FatalExceptions.cpp.

◆ ClientException() [2/2]

ClientException::ClientException ( const ClientException other)

Definition at line 24 of file FatalExceptions.cpp.

◆ ~ClientException()

ClientException::~ClientException ( )
throw (
)
virtual

Definition at line 37 of file FatalExceptions.cpp.

Member Function Documentation

◆ operator=()

ClientException & ClientException::operator= ( const ClientException other)

Definition at line 27 of file FatalExceptions.cpp.

◆ what()

const char * ClientException::what ( ) const
throw (
)
virtual

Definition at line 39 of file FatalExceptions.cpp.

◆ getStatusCode()

int ClientException::getStatusCode ( ) const

Definition at line 44 of file FatalExceptions.cpp.

Member Data Documentation

◆ _statusCode

int ClientException::_statusCode
private

Definition at line 42 of file FatalExceptions.hpp.

◆ _msg

std::string ClientException::_msg
private

Definition at line 43 of file FatalExceptions.hpp.


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