#include <Win32Exception.h>
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. |
|
Construct a new error.
|