WinStd
Windows Win32 API using Standard C++
Loading...
Searching...
No Matches
winstd::com_runtime_error Class Reference

COM runtime error. More...

#include <WinStd/COM.h>

Inheritance diagram for winstd::com_runtime_error:
winstd::num_runtime_error< HRESULT >

Public Member Functions

 com_runtime_error (error_type num, const std::string &msg)
 Constructs an exception.
 
 com_runtime_error (error_type num, const char *msg=nullptr)
 Constructs an exception.
 
- Public Member Functions inherited from winstd::num_runtime_error< HRESULT >
 num_runtime_error (error_type num, const std::string &msg)
 Constructs an exception.
 
 num_runtime_error (error_type num, const char *msg=nullptr)
 Constructs an exception.
 
error_type number () const
 Returns the error number.
 

Additional Inherited Members

- Public Types inherited from winstd::num_runtime_error< HRESULT >
typedef HRESULT error_type
 Error number type.
 
- Protected Attributes inherited from winstd::num_runtime_error< HRESULT >
error_type m_num
 Numeric error code.
 

Detailed Description

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<>.

Constructor & Destructor Documentation

◆ 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]numCOM error code
[in]msgError 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]numCOM error code
[in]msgError message

The documentation for this class was generated from the following file: