Static Public Member Functions | List of all members
ErrLib::ComException Class Reference

#include <ErrLib_CPP.h>

Inheritance diagram for ErrLib::ComException:

Static Public Member Functions

static ComException FromHResult (HRESULT hr)

Additional Inherited Members

- Public Member Functions inherited from ErrLib::Exception
 Exception ()
 Exception (const std::wstring &message)
 Exception (const std::wstring &message, DWORD code, void *data)
std::wstring GetMsg ()
DWORD GetCode ()
void * GetData ()
void GetMessageText (WCHAR *pOutput, int cch)
void GetContext (CONTEXT *pOutput)
void PrintStackTrace (WCHAR *pOutput, int cch)
std::wstring PrintStackTrace ()
void Log (bool visible)

Detailed Description

Represents an error in Windows COM API function or method defined by the integer HRESULT code

Member Function Documentation

◆ FromHResult()

static ComException ErrLib::ComException::FromHResult ( HRESULT  hr)

Creates a new ComException using the error code and message from the specified HRESULT

hrHRESULT value that would be used as error code

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