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

Error category. More...

#include <error.hpp>

Inheritance diagram for join::ErrorCategory:
Collaboration diagram for join::ErrorCategory:

Public Member Functions

virtual const char * name () const noexcept
 Get error category name.
 
virtual std::string message (int code) const
 Translate 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

Error category.

Member Function Documentation

◆ equivalent()

bool ErrorCategory::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 ErrorCategory::message ( int code) const
virtual

Translate error code to human readable error string.

Parameters
codeerror code.
Returns
Human readable error string.

◆ name()

const char * ErrorCategory::name ( ) const
virtualnoexcept

Get error category name.

Returns
Error category name.

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