Signals a problem with the execution of a socket call.
More...
#include <simple_socket/SimpleSocket.h>
|
| | SocketException (std::string_view message, bool inclErrno=true) |
| | SocketException (std::string_view message, int error) |
| | SocketException (const SocketException &)=default |
| | ~SocketException () noexcept |
| | Provided just to guarantee that no exceptions are thrown.
|
| const char * | what () const noexcept |
| | Returns a C-string describing the cause of the current error.
|
| int | errorCode () const noexcept |
| | Returns the glibc errno code of the current error.
|
◆ SocketException() [1/3]
| NET::SocketException::SocketException |
( |
std::string_view | message, |
|
|
bool | inclErrno = true ) |
Construct a SocketException with a explanatory message.
- Parameters
-
| message | explanatory message |
| inclErrno | if true system message from strerror(errno) is postfixed |
◆ SocketException() [2/3]
| NET::SocketException::SocketException |
( |
std::string_view | message, |
|
|
int | error ) |
Construct a SocketException with a explanatory message.
- Parameters
-
| message | explanatory message |
| error | system message from strerror(error) is postfixed |
◆ SocketException() [3/3]
| NET::SocketException::SocketException |
( |
const SocketException & | | ) |
|
|
default |
◆ ~SocketException()
| NET::SocketException::~SocketException |
( |
| ) |
|
|
inlinenoexcept |
Provided just to guarantee that no exceptions are thrown.
Definition at line 31 of file SimpleSocket.h.
◆ errorCode()
| int NET::SocketException::errorCode |
( |
| ) |
const |
|
inlinenoexcept |
◆ what()
| const char * NET::SocketException::what |
( |
| ) |
const |
|
inlinenoexcept |
The documentation for this class was generated from the following file: