WMI Library
|
The exception type thrown by the WMI library. More...
#include <Exception.hpp>
Public Member Functions | |
Exception (HRESULT result, const tchar *operation) | |
Construction from a non-IErrorInfo supported error. | |
template<typename T > | |
Exception (HRESULT result, WCL::IFacePtr< T > &object, const tchar *operation) | |
Construction from an IErrorInfo supported error. | |
virtual | ~Exception () throw () |
Destructor. | |
Private Member Functions | |
void | formatError (HRESULT result, IUnknown *object, const IID &iid, const tchar *operation) |
Format the error using the WMI or IErrorInfo details. | |
tstring | formatWmiError (HRESULT error) |
Format the WMI specific HRESULT error. |
The exception type thrown by the WMI library.
WMI::Exception::Exception | ( | HRESULT | result, |
const tchar * | operation | ||
) |
Construction from a non-IErrorInfo supported error.
WMI::Exception::Exception | ( | HRESULT | result, |
WCL::IFacePtr< T > & | object, | ||
const tchar * | operation | ||
) | [inline] |
Construction from an IErrorInfo supported error.
WMI::Exception::~Exception | ( | ) | throw () [virtual] |
Destructor.
void WMI::Exception::formatError | ( | HRESULT | result, |
IUnknown * | object, | ||
const IID & | iid, | ||
const tchar * | operation | ||
) | [private] |
Format the error using the WMI or IErrorInfo details.
tstring WMI::Exception::formatWmiError | ( | HRESULT | error | ) | [private] |
Format the WMI specific HRESULT error.