![]() |
Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include <elm/util/ErrorHandler.h>
Public Member Functions | |
ErrorBase (ErrorHandler *error_handler=&ErrorHandler::DEFAULT) | |
void | setErrorHandler (ErrorHandler *error_handler) |
ErrorHandler * | getErrorHandler (void) const |
Protected Member Functions | |
void | onError (error_level_t level, const string &message) |
This is the base class of objects that deliver error events through ErrorHandler. The user class has hust to inherit from this ond to support error delivering.
|
inline |
Build a new error base.
error_handler | Initial error handler (optional). |
References ErrorBase::setErrorHandler().
|
inline |
|
inlineprotected |
References ErrorHandler::onError().
|
inline |
Set the current error handler.
Error | handler to set. |
Referenced by ErrorBase::ErrorBase().