#include <iError.h>
Inheritance diagram for iERR::iStdErrorHandler::
Public Methods | |
iStdErrorHandler () | |
Default constructor. More... | |
void | ShowDebugInfo (bool) |
default true if _DEBUG is defined. More... | |
iError::ErrorLevel | SetNotificationLevel (iError::ErrorLevel newLevel) |
Set the level, below which no messages are displayed. More... | |
virtual int | Throw (iError::ErrorLevel errLevel, const char *functionName, const char *file, int line, iErrorCode *errCode,...) |
Use this method to create error and evtl to throw it as C++ exception. More... | |
virtual bool | Rethrow (const char *functionName=NULL, const char *file=NULL, int line=0) |
Use this method to propagate the error or use iRethrow macro to call Rethrow of the current error handler. More... | |
virtual bool | Handle (const char *functionName=NULL, const char *file=NULL, int line=0) |
Display the last error occured, write it to a log file or whatever the error handler desires to do with it. More... | |
virtual bool | Reset () |
Use this method to reset the last error, so iLastError will return NULL. More... | |
virtual iError * | LastError (bool reset=false) |
Returns the last error occured. More... | |
iErrorHandler * | SetCurrent () |
Set this error handler to be the current error handler. More... | |
Static Public Methods | |
iErrorHandler * | Current () |
Get the current error handler. More... | |
Static Public Attributes | |
iStdErrorHandler | m_Default |
The instance of this used as default error handler. More... | |
Protected Methods | |
virtual void | _Throw () |
overload this method to provide customized error throwing. More... | |
virtual void | _Handle () |
overload this method to provide customized error handling. More... | |
Protected Attributes | |
bool | m_ShowDebugInfo |
iError::ErrorLevel | m_NotificationLevel |
iError * | m_Last |
@label pointer to m_LastError or NULL. More... | |
Friends | |
class | iError |
The throwing of errors:
Definition at line 556 of file iError.h.
|
Default constructor.
Definition at line 305 of file iError.cpp. |
|
overload this method to provide customized error handling.
Reimplemented from iERR::iErrorHandler. Definition at line 343 of file iError.cpp. References iERR::iErrorHandler::m_Last, and m_NotificationLevel. |
|
overload this method to provide customized error throwing.
Reimplemented from iERR::iErrorHandler. Definition at line 316 of file iError.cpp. References iERR::iErrorHandler::Handle(), iERR::iERR_NO_EXCEPTIONS(), iThrow, iERR::iErrorHandler::LastError(), iERR::iErrorHandler::m_Last, iERR::UNKNOWN(), and WARNING. |
|
Get the current error handler.
Definition at line 242 of file iError.cpp. References iERR::iErrorHandler::iErrorHandler(). |
|
Display the last error occured, write it to a log file or whatever the error handler desires to do with it. If HERE macro is used as parameter, the debug information of the error is replaced with the file name and line number of the caller.
Definition at line 194 of file iError.cpp. References iERR::iErrorHandler::_Handle(), and iERR::iErrorHandler::m_Last. Referenced by _Throw(). |
|
Returns the last error occured.
Definition at line 233 of file iError.cpp. References iERR::iErrorHandler::iError, iERR::iErrorHandler::m_Last, and iERR::iErrorHandler::Reset(). Referenced by _Throw(). |
|
Use this method to reset the last error, so iLastError will return NULL.
Definition at line 220 of file iError.cpp. References iERR::iErrorHandler::m_Last. Referenced by iERR::iErrorHandler::LastError(). |
|
Use this method to propagate the error or use iRethrow macro to call Rethrow of the current error handler. If HERE macro is used as parameter, the debug information of the error is replaced with the file name and line number of the caller.
Definition at line 169 of file iError.cpp. References iERR::iErrorHandler::_Throw(), and iERR::iErrorHandler::m_Last. |
|
Set this error handler to be the current error handler.
Definition at line 277 of file iError.cpp. References iERR::iErrorHandler::iErrorHandler(). |
|
Set the level, below which no messages are displayed. Default level is iINFO. @exaple SetErrorLevel(iCRITICAL) will not display iWARNING and iINFO errors.
|
|
default true if _DEBUG is defined.
|
|
Use this method to create error and evtl to throw it as C++ exception. Or use iThrow macro to call Throw of the current error handler. Use INFO, WARNING, CRITICAL or EXCEPTION macros instead of specifying parameters The default error handler will only throw the error as C++ exception if the error level is iEXCEPTION. Use Handle() to display the last error or whatever the error handler will do with it.
Definition at line 99 of file iError.cpp. References iERR::iErrorHandler::_Throw(), iERR::iErrorHandler::m_Last, and iERR::iErrorHandler::m_LastError. |
|
Definition at line 413 of file iError.h. Referenced by iERR::iErrorHandler::iErrorHandler(), and iERR::iErrorHandler::LastError(). |
|
The instance of this used as default error handler.
Definition at line 44 of file iError.cpp. |
|
@label pointer to m_LastError or NULL.
Definition at line 528 of file iError.h. Referenced by _Handle(), _Throw(), iERR::iErrorHandler::Handle(), iERR::iErrorHandler::LastError(), iERR::iErrorHandler::Reset(), iERR::iErrorHandler::Rethrow(), and iERR::iErrorHandler::Throw(). |
|
Definition at line 581 of file iError.h. Referenced by _Handle(). |
|
|