Elm  2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
ErrorBase Class Reference

#include <elm/util/ErrorHandler.h>

+ Inheritance diagram for ErrorBase:

Public Member Functions

 ErrorBase (ErrorHandler *error_handler=&ErrorHandler::DEFAULT)
 
void setErrorHandler (ErrorHandler *error_handler)
 
ErrorHandlergetErrorHandler (void) const
 

Protected Member Functions

void onError (error_level_t level, const string &message)
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ErrorBase()

ErrorBase ( ErrorHandler error_handler = &ErrorHandler::DEFAULT)
inline

Build a new error base.

Parameters
error_handlerInitial error handler (optional).

References ErrorBase::setErrorHandler().

Member Function Documentation

◆ getErrorHandler()

ErrorHandler* getErrorHandler ( void  ) const
inline

◆ onError()

void onError ( error_level_t  level,
const string message 
)
inlineprotected

◆ setErrorHandler()

void setErrorHandler ( ErrorHandler error_handler)
inline

Set the current error handler.

Parameters
Errorhandler to set.

Referenced by ErrorBase::ErrorBase().


The documentation for this class was generated from the following files: