AnCH Framework 0.2
Another C++ Hack: C++23 utility libraries
Loading...
Searching...
No Matches
anch::rest::HttpException Class Reference

#include <httpException.hpp>

Inheritance diagram for anch::rest::HttpException:
Collaboration diagram for anch::rest::HttpException:

Public Member Functions

 HttpException (anch::rest::Status status, const std::string &message=std::string())
anch::rest::Status getStatus () const noexcept

Detailed Description

HTTP error.
Thrown by an endpoint, the response has the exception status and its message as text/plain body (when it is not empty).

Author
Vincent Lachenal
Since
0.2

Constructor & Destructor Documentation

◆ HttpException()

anch::rest::HttpException::HttpException ( anch::rest::Status status,
const std::string & message = std::string() )

HttpException constructor

Parameters
statusthe status
messagethe message

Member Function Documentation

◆ getStatus()

anch::rest::Status anch::rest::HttpException::getStatus ( ) const
noexcept

Status getter

Returns
the status

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