Class CErrorHandler::
ReportError()
Data ItemsConstructorsDestructorsFunctionsCustom CodeGo to hierarchy chart    Prev page: ReportErrorNext page: ReportError    Show member index
Protected Function Declared in:
ErrorHandler.h

'Declaration' icon -- Shortcut to top of page. Declaration

virtual void ReportError(
    const std::string& rMethod,
    int iErrorCode) const;

'Description' icon -- Shortcut to top of page. Description

Report an error, with socket error

'Function Body' icon -- Shortcut to top of page. Function Body

if (!GetLog())
    return;

try
{
    //Get the log
    CErrorLog* pLog;
    pLog=GetLog();

    //Convert the error code
    char aTmp[11];
    sprintf(aTmp,"%d",iErrorCode);

    //Get the string for it
    std::string sError;
    sError="Socket error: ";
    sError+=aTmp;
    sError+=", ";
    sError+=ErrorCodeToString(iErrorCode);

    //Report to the log
    pLog->ReportError(m_sClassName,
                      rMethod,
                      sError);
}
ERROR_UNKNOWN("ReportError")

'See Also' icon -- Shortcut to top of page. See Also

Class Overview Class Overview  |  Hierarchy Chart Hierarchy Chart


Get Surveyor!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.