![]() |
ReportErrorOS() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| Protected Function |
Declared in: ErrorHandler.h |
Declaration
virtual void ReportErrorOS(
const std::string& rMethod,
const std::string& rMessage) const;
DescriptionReport an error (Take the get last error)
Function Body
if (!GetLog())
return;
try
{
//Get the last error
DWORD dwLastError;
dwLastError=GetLastError();
//Format the message
std::string sMessage;
sMessage=rMessage;
sMessage+=", with error code: ";
//Convert the error code
char aTmp[11];
itoa(dwLastError,aTmp,10);
//Add it again
sMessage+=aTmp;
sMessage+=" ";
sMessage+=ErrorCodeToString(dwLastError);
//Get the log
CErrorLog* pLog;
pLog=GetLog();
//Report to the log
pLog->ReportError(m_sClassName,
rMethod,
sMessage);
}
ERROR_UNKNOWN("ReportErrorOS")
See Also
This web site was generated
using Surveyor V4.50.811.1. Click
here
for more information. |
Site content copyright © 2003 Komodia LTD.. See the About page for additional notices. This page last updated: 24 Feb 2003. |