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

OW32::CPerfDataException Class Reference

The general exception thrown by CPerfData and friends. More...

#include <PerfData.h>

List of all members.

Public Member Functions

 CPerfDataException (LPCTSTR prefix, DWORD error=ERROR_INTERNAL_ERROR)
 Constructor taking a message prefix and Win32 error code.
DWORD getWin32Error () const
 Return the Win32 error code associated with this exception.
const std::_tstring & getPrefix () const
 Get the message prefix.
std::_tstring getFormattedError () const
 Get a formatted error consisting of the prefix + FormatMessage(Win32Error).


Detailed Description

The general exception thrown by CPerfData and friends.


Constructor & Destructor Documentation

OW32::CPerfDataException::CPerfDataException LPCTSTR  prefix,
DWORD  error = ERROR_INTERNAL_ERROR
[inline]
 

Constructor taking a message prefix and Win32 error code.

Parameters:
prefix Message prefix, will be copied
error The Win32 error code, defaults to ERROR_INTERNAL_ERROR for things that are basically application logic errors


Member Function Documentation

DWORD OW32::CPerfDataException::getWin32Error  )  const [inline]
 

Return the Win32 error code associated with this exception.

0 (ERROR_SUCCESS) if not applicable.


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