COM runtime error.
More...
#include <WinStd/COM.h>
|
typedef HRESULT | error_type |
| Error number type.
|
|
error_type | m_num |
| Numeric error code.
|
|
COM runtime error.
- Note
- Must be defined as derived class from num_runtime_error<> to allow correct type info for dynamic typecasting and prevent folding with other derivates of num_runtime_error<>.
◆ com_runtime_error() [1/2]
winstd::com_runtime_error::com_runtime_error |
( |
error_type | num, |
|
|
const std::string & | msg ) |
|
inline |
Constructs an exception.
- Parameters
-
[in] | num | COM error code |
[in] | msg | Error message |
◆ com_runtime_error() [2/2]
winstd::com_runtime_error::com_runtime_error |
( |
error_type | num, |
|
|
const char * | msg = nullptr ) |
|
inline |
Constructs an exception.
- Parameters
-
[in] | num | COM error code |
[in] | msg | Error message |
The documentation for this class was generated from the following file: