WinSock2 runtime error.
More...
#include <WinStd/WinSock2.h>
|
static std::string | message (error_type num, DWORD dwLanguageId=0) |
| Returns a user-readable Windows error message.
|
|
|
typedef int | error_type |
| Error number type.
|
|
error_type | m_num |
| Numeric error code.
|
|
◆ ws2_runtime_error() [1/5]
winstd::ws2_runtime_error::ws2_runtime_error |
( |
error_type | num | ) |
|
|
inline |
Constructs an exception.
- Parameters
-
[in] | num | WinSock2 error code |
◆ ws2_runtime_error() [2/5]
winstd::ws2_runtime_error::ws2_runtime_error |
( |
error_type | num, |
|
|
const std::string & | msg ) |
|
inline |
Constructs an exception.
- Parameters
-
[in] | num | WinSock2 error code |
[in] | msg | Error message |
◆ ws2_runtime_error() [3/5]
winstd::ws2_runtime_error::ws2_runtime_error |
( |
error_type | num, |
|
|
const char * | msg ) |
|
inline |
Constructs an exception.
- Parameters
-
[in] | num | WinSock2 error code |
[in] | msg | Error message |
◆ ws2_runtime_error() [4/5]
winstd::ws2_runtime_error::ws2_runtime_error |
( |
const std::string & | msg | ) |
|
|
inline |
Constructs an exception using WSAGetLastError()
- Parameters
-
◆ ws2_runtime_error() [5/5]
winstd::ws2_runtime_error::ws2_runtime_error |
( |
const char * | msg | ) |
|
|
inline |
Constructs an exception using WSAGetLastError()
- Parameters
-
◆ message()
static std::string winstd::ws2_runtime_error::message |
( |
error_type | num, |
|
|
DWORD | dwLanguageId = 0 ) |
|
inlinestaticprotected |
The documentation for this class was generated from the following file: