simple-socket library 1.1.5
|
Signals a problem with the execution of a socket call. More...
#include <SimpleSocket.h>
Public Member Functions | |
int | errorCode () const throw () |
Returns the glibc errno code of the current error. | |
SocketException (const std::string &message, bool inclSysMsg=true) throw () | |
const char * | what () const throw () |
Returns a C-string describing the cause of the current error. | |
~SocketException () throw () | |
Provided just to guarantee that no exceptions are thrown. |
Signals a problem with the execution of a socket call.
Definition at line 11 of file SimpleSocket.h.
SocketException::SocketException | ( | const std::string & | message, |
bool | inclSysMsg = true |
||
) | throw () |
Construct a SocketException with a explanatory message.
message | explanatory message |
inclSysMsg | true if system message from strerror(errno) should be postfixed to the user provided message |
Definition at line 10 of file SimpleSocket.cpp.
NET::SocketException::~SocketException | ( | ) | throw () [inline] |
Provided just to guarantee that no exceptions are thrown.
Definition at line 23 of file SimpleSocket.h.
const char* NET::SocketException::what | ( | ) | const throw () [inline] |
Returns a C-string describing the cause of the current error.
Definition at line 26 of file SimpleSocket.h.
int NET::SocketException::errorCode | ( | ) | const throw () [inline] |
Returns the glibc errno code of the current error.
Definition at line 29 of file SimpleSocket.h.