Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

OW32::CWin32Exception Class Reference

Encapsulates an API error, and a context description. More...

#include <Win32Exception.h>

List of all members.

Public Member Functions

 CWin32Exception (LPCTSTR prefix, DWORD error)
 Construct a new error.
 CWin32Exception ()
 Default c'tor for catch/assign.
DWORD getError () const
 Return the Win32 error code.
LPCTSTR getPrefix () const
 Return the error context description.
std::_tstring getFormattedError () const
 Return a formatted error message (prefix: description of error code).

Static Public Member Functions

std::_tstring getFormattedError (DWORD error, LPCTSTR prefix)
 Helper function to save manually constructing an exception to simply describe an error code.


Detailed Description

Encapsulates an API error, and a context description.


Constructor & Destructor Documentation

OW32::CWin32Exception::CWin32Exception LPCTSTR  prefix,
DWORD  error
[inline]
 

Construct a new error.

Parameters:
prefix Description of the error context
error The Win32 error code.


The documentation for this class was generated from the following file:
Generated on Sun Jun 5 01:29:29 2005 for OW32 by  doxygen 1.3.9.1