Wizard
Software Engineering Project - Wizard
Loading...
Searching...
No Matches
sockpp::sys_error Class Reference

#include <exception.h>

Inheritance diagram for sockpp::sys_error:

Public Member Functions

 sys_error ()
 
 sys_error (int err)
 
int error () const
 

Static Public Member Functions

static std::string error_str (int err)
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ sys_error() [1/2]

sockpp::sys_error::sys_error ( )
inline

Creates an error using the current system 'errno' value.

◆ sys_error() [2/2]

sockpp::sys_error::sys_error ( int err)
explicit

Constructs an error with the specified system errno.

Parameters
errThe error number. This is the system errno value.

Member Function Documentation

◆ error()

int sockpp::sys_error::error ( ) const
inline

Get the error number.

Returns
The system error number.

◆ error_str()

std::string sockpp::sys_error::error_str ( int err)
static

Gets a string describing the specified error. This is typically the returned message from the system strerror().

Parameters
errThe system error number.
Returns
A string describing the specified error.

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