WMI Library
Public Member Functions | Private Member Functions
WMI::Exception Class Reference

The exception type thrown by the WMI library. More...

#include <Exception.hpp>

List of all members.

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.

Detailed Description

The exception type thrown by the WMI library.


Constructor & Destructor Documentation

WMI::Exception::Exception ( HRESULT  result,
const tchar *  operation 
)

Construction from a non-IErrorInfo supported error.

template<typename T >
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.


Member Function Documentation

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.


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