sockpp
Modern C++ socket library wrapper
|
System error. More...
#include <exception.h>
Public Member Functions | |
sys_error () | |
Creates an error using the current system 'errno' value. | |
sys_error (int err) | |
Constructs an error with the specified system errno. More... | |
int | error () const |
Get the error number. More... | |
Static Public Member Functions | |
static std::string | error_str (int err) |
Gets a string describing the specified error. More... | |
System error.
These are errors that are resulted from system socket calls. The error codes are platform 'errno' values (or similar), and the messages are typically derived from the system.
|
explicit |
Constructs an error with the specified system errno.
err | The error number. This is the system errno value. |
|
inline |
Get the error number.
|
static |
Gets a string describing the specified error.
This is typically the returned message from the system strerror().
err | The system error number. |