join 1.0
lightweight network framework library
Loading...
Searching...
No Matches
join::HttpCategory Class Reference

HTTP API generic error category. More...

#include <httpmessage.hpp>

Inheritance diagram for join::HttpCategory:
Collaboration diagram for join::HttpCategory:

Public Member Functions

virtual const char * name () const noexcept
 get HTTP API generic error category name.
 
virtual std::string message (int code) const
 translate HTTP API generic error code to human readable error string.
 
virtual bool equivalent (const std::error_code &code, int condition) const noexcept
 find equivalent from Errc to system error code.
 

Detailed Description

HTTP API generic error category.

Member Function Documentation

◆ equivalent()

bool HttpCategory::equivalent ( const std::error_code & code,
int condition ) const
virtualnoexcept

find equivalent from Errc to system error code.

Parameters
codeSystem error code.
conditionErrc.
Returns
true if equivalent, false otherwise.

◆ message()

std::string HttpCategory::message ( int code) const
virtual

translate HTTP API generic error code to human readable error string.

Parameters
codeerror code.
Returns
human readable error string.

◆ name()

const char * HttpCategory::name ( ) const
virtualnoexcept

get HTTP API generic error category name.

Returns
deserializer generic error category name.

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