|
Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
22 #ifndef ELM_UTIL_ERRORHANDLER_H_
23 #define ELM_UTIL_ERRORHANDLER_H_
25 #include <elm/assert.h>
26 #include <elm/string.h>
54 { ASSERTP(error_handler,
"null error handler"); handler = error_handler; }
Definition: ErrorHandler.h:49
static ErrorHandler & QUIET
Definition: ErrorHandler.h:44
virtual ~ErrorHandler()
Definition: ErrorHandler.h:45
void setErrorHandler(ErrorHandler *error_handler)
Definition: ErrorHandler.h:53
static ErrorHandler & NO_INFO
Definition: ErrorHandler.h:44
@ level_warning
Definition: ErrorHandler.h:34
@ level_error
Definition: ErrorHandler.h:35
error_level_t
Definition: ErrorHandler.h:31
void onError(error_level_t level, const string &message)
Definition: ErrorHandler.h:58
virtual void onError(error_level_t level, const string &message)
Definition: util_ErrorHandler.cpp:60
static ErrorHandler DEFAULT
Definition: ErrorHandler.h:44
@ level_fatal
Definition: ErrorHandler.h:36
static cstring getLevelString(error_level_t level)
Definition: util_ErrorHandler.cpp:42
@ level_info
Definition: ErrorHandler.h:33
ErrorHandler * getErrorHandler(void) const
Definition: ErrorHandler.h:55
ErrorBase(ErrorHandler *error_handler=&ErrorHandler::DEFAULT)
Definition: ErrorHandler.h:51
Definition: ErrorHandler.h:40
@ level_none
Definition: ErrorHandler.h:32