Windows runtime error.
More...
#include <WinStd/Common.h>
|
static std::string | message (error_type num, DWORD dwLanguageId=0) |
| Returns a user-readable Windows error message. As std::exception messages may only be char*, we use UTF-8 by convention.
|
|
|
typedef DWORD | error_type |
| Error number type.
|
|
error_type | m_num |
| Numeric error code.
|
|
◆ win_runtime_error() [1/5]
winstd::win_runtime_error::win_runtime_error |
( |
error_type | num | ) |
|
|
inline |
Constructs an exception.
- Parameters
-
[in] | num | Windows error code |
◆ win_runtime_error() [2/5]
winstd::win_runtime_error::win_runtime_error |
( |
error_type | num, |
|
|
const std::string & | msg ) |
|
inline |
Constructs an exception.
- Parameters
-
[in] | num | Windows error code |
[in] | msg | Error message |
◆ win_runtime_error() [3/5]
winstd::win_runtime_error::win_runtime_error |
( |
error_type | num, |
|
|
const char * | msg ) |
|
inline |
Constructs an exception.
- Parameters
-
[in] | num | Windows error code |
[in] | msg | Error message |
◆ win_runtime_error() [4/5]
winstd::win_runtime_error::win_runtime_error |
( |
const std::string & | msg | ) |
|
|
inline |
Constructs an exception using GetLastError()
- Parameters
-
◆ win_runtime_error() [5/5]
winstd::win_runtime_error::win_runtime_error |
( |
const char * | msg | ) |
|
|
inline |
Constructs an exception using GetLastError()
- Parameters
-
◆ message()
static std::string winstd::win_runtime_error::message |
( |
error_type | num, |
|
|
DWORD | dwLanguageId = 0 ) |
|
inlinestaticprotected |
Returns a user-readable Windows error message. As std::exception messages may only be char*, we use UTF-8 by convention.
- See also
- FormatMessage function
The documentation for this class was generated from the following file: