Socket exception.
More...
#include <B2BITS_SystemException.h>
|
static int | getLastError () |
| Returns error code of the last operation related to socket subsystem.
|
|
static std::string | createErrorMessage (char const *msg, int errNo) |
| Craete error message using given description and system error code.
|
|
static std::string | getErrorDescription (int errNo) |
| Returns description for error code.
|
|
static int | getLastError () throw () |
| Returns error code of the last operation.
|
|
|
std::string | m_reason |
| std::string that describes raised exception
|
|
◆ SocketException() [1/4]
System::SocketException::SocketException |
( |
char const * | msg | ) |
|
|
explicit |
Constructs the system std::exception with the given message.
◆ SocketException() [2/4]
System::SocketException::SocketException |
( |
std::string const & | msg | ) |
|
|
explicit |
Constructs the system std::exception with the given message.
◆ SocketException() [3/4]
System::SocketException::SocketException |
( |
char const * | msg, |
|
|
int | errNo ) |
Constructs the system std::exception with the given errno.
◆ SocketException() [4/4]
System::SocketException::SocketException |
( |
std::string const & | msg, |
|
|
int | errNo ) |
Constructs the system std::exception with the given errno.
warning Please be careful. std::string can change last error code.
◆ getLastError()
static int System::SocketException::getLastError |
( |
| ) |
|
|
static |
Returns error code of the last operation related to socket subsystem.