Windows C++ Library
Public Member Functions | Public Attributes | Protected Member Functions | Static Protected Member Functions
WCL::Win32Exception Class Reference

The base class for all exception types that are the result of Win32 API calls. More...

#include <Win32Exception.hpp>

Inheritance diagram for WCL::Win32Exception:
WCL::RegistryException

List of all members.

Public Member Functions

 Win32Exception (DWORD dwError)
 Partial constructor.
 Win32Exception (const tchar *pszOperation)
 Partial constructor that uses GetLastError for the error code.
 Win32Exception (const tstring &strOperation)
 Partial constructor that uses GetLastError for the error code.
 Win32Exception (DWORD dwError, const tchar *pszOperation)
 Full constructor.
 Win32Exception (DWORD dwError, const tstring &strOperation)
 Full constructor.

Public Attributes

DWORD m_dwError
 The Win32 error code.

Protected Member Functions

 Win32Exception ()
 Default constructor.

Static Protected Member Functions

static tstring Format (const tchar *pszOperation, DWORD dwError)
 Format the error message.

Detailed Description

The base class for all exception types that are the result of Win32 API calls.


Constructor & Destructor Documentation

WCL::Win32Exception::Win32Exception ( DWORD  dwError) [inline]

Partial constructor.

WCL::Win32Exception::Win32Exception ( const tchar *  pszOperation) [inline]

Partial constructor that uses GetLastError for the error code.

WCL::Win32Exception::Win32Exception ( const tstring &  strOperation) [inline]

Partial constructor that uses GetLastError for the error code.

WCL::Win32Exception::Win32Exception ( DWORD  dwError,
const tchar *  pszOperation 
) [inline]

Full constructor.

WCL::Win32Exception::Win32Exception ( DWORD  dwError,
const tstring &  strOperation 
) [inline]

Full constructor.

WCL::Win32Exception::Win32Exception ( ) [inline, protected]

Default constructor.

This should only be used by derived classes that set the error and string directly.


Member Function Documentation

tstring WCL::Win32Exception::Format ( const tchar *  pszOperation,
DWORD  dwError 
) [inline, static, protected]

Format the error message.


Member Data Documentation

The Win32 error code.


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