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

Network input/output error. More...

#include <ioException.hpp>

Inheritance diagram for anch::network::IOException:
Collaboration diagram for anch::network::IOException:

Public Member Functions

 IOException (const std::string &message, int errnum=errno)
 IOException (const std::string &message, const std::error_code &code)
virtual ~IOException () noexcept

Detailed Description

Network input/output error.

The error code is available with code() : std::generic_category for system errors (errno values), addrinfoCategory for address resolution errors.

Author
Vincent Lachenal

Constructor & Destructor Documentation

◆ IOException() [1/2]

anch::network::IOException::IOException ( const std::string & message,
int errnum = errno )
explicit

IOException constructor

Parameters
messagethe error message
errnumthe errno value (default to current errno )

◆ IOException() [2/2]

anch::network::IOException::IOException ( const std::string & message,
const std::error_code & code )

IOException constructor

Parameters
messagethe error message
codethe error code
Since
0.2

◆ ~IOException()

virtual anch::network::IOException::~IOException ( )
virtualnoexcept

IOException destructor


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