#include <cstring>
#include <cstdarg>
Go to the source code of this file.
Namespaces | |
namespace | iERR |
Defines | |
#define | __FUNCTION__ "unknown" |
#define | IERROR_API |
#define | ERR_MAX_PARAM 8 |
#define | ERR_MAX_STACK_DEPTH 32 |
#define | ERR_MAX_DESCRIPTION 1024 |
#define | ERR_MAX_DEBUG_DESCRIPTION 128 |
#define | ERR_MAX_DEBUG_INFO ERR_MAX_STACK_DEPTH*ERR_MAX_DEBUG_DESCRIPTION |
#define | iLastError iERR::iErrorHandler::Current()->LastError |
Wrapper for retriving the last error. More... | |
#define | iThrow iERR::iErrorHandler::Current()->Throw |
Wrapper for throwing errors. More... | |
#define | iRethrow() iERR::iErrorHandler::Current()->Rethrow(HERE) |
Wrapper for rethrowing errors. More... | |
#define | iReset iERR::iErrorHandler::Current()->Reset |
Wrapper for resetting errors. More... | |
#define | iHandleLastError() iERR::iErrorHandler::Current()->Handle(HERE) |
Wrapper for handling errors. More... | |
#define | iAssert(exp) if (!(exp)) iThrow(iError::iASSERTION,__FUNCTION__,__FILE__,__LINE__,&iERR::iERR_ASSERT, #exp) |
Wrapper for asserts. More... | |
#define | INFO(err) iError::iINFO,__FUNCTION__,__FILE__,__LINE__,&err |
macros used to call iThrow. More... | |
#define | WARNING(err) iError::iWARNING,__FUNCTION__,__FILE__,__LINE__,&err |
#define | CRITICAL(err) iError::iCRITICAL,__FUNCTION__,__FILE__,__LINE__,&err |
#define | EXCEPTION(err) iError::iEXCEPTION,__FUNCTION__,__FILE__,__LINE__,&err |
#define | HERE __FUNCTION__,__FILE__,__LINE__ |
macro used by iRethrow and iHandleLastError. More... |
Definition in file iError.h.
|
|
|
|
|
Definition at line 114 of file iError.h. Referenced by iERR::iError::GetDebugInfo(). |
|
|
|
Definition at line 113 of file iError.h. Referenced by iERR::iError::GetDescription(). |
|
Definition at line 111 of file iError.h. Referenced by iERR::iErrorCode::iErrorCode(). |
|
Definition at line 112 of file iError.h. Referenced by iERR::iError::AddDebugInfo(). |
|
|
|
macro used by iRethrow and iHandleLastError.
|
|
Wrapper for asserts.
example |
|
|
|
Wrapper for handling errors.
example: |
|
Wrapper for retriving the last error.
|
|
macros used to call iThrow.
|
|
Wrapper for resetting errors.
This should be called by procedures, that throw errors at the beginning of execution, to reset old unhandled errors. example: |
|
Wrapper for rethrowing errors.
example: |
|
Wrapper for throwing errors.
example: Definition at line 130 of file iError.h. Referenced by iERR::iStdErrorHandler::_Throw(). |
|
Definition at line 162 of file iError.h. Referenced by iERR::iStdErrorHandler::_Throw(). |