Windows runtime error.
More...
#include <WinStd/Common.h>
◆ 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]
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()
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: