ApparatusFramework::ErrorHandler Class Reference
[Kernel Services]

#include <KernelServices/common/current/include/ErrorHandler.h>

Inheritance diagram for ApparatusFramework::ErrorHandler:

List of all members.

Public Member Functions

Construction and destruction

 ErrorHandler ()
virtual ~ErrorHandler ()
Interface methods

virtual bool handleError (ErrorStatus &errorStatus)=0

Detailed Description

Interface for the implementation of a asynchronous error handling. The idea is that a component that wants to get error events from another one installs itself as an error handler of this class. As soon as the "observed" class detects an error it calls the "handleError()" method of the error handler. Each component that wants itself to install as an error handler of another component has to inherit from the class presented here.

Definition at line 100 of file ErrorHandler.h.

Constructor & Destructor Documentation

ApparatusFramework::ErrorHandler::ErrorHandler (  )  [inline]

Default constructor

Definition at line 107 of file ErrorHandler.h.

virtual ApparatusFramework::ErrorHandler::~ErrorHandler (  )  [inline, virtual]

Virtual destructor, so that derived classes can be deleted with a pointer to ErrorHandler

Definition at line 111 of file ErrorHandler.h.

Member Function Documentation

virtual bool ApparatusFramework::ErrorHandler::handleError ( ErrorStatus errorStatus  )  [pure virtual]

The call back method that will be called by the object where this error handler was installed.

errorStatus Status of the error. It includes the error number, type, senderId and the param
  • true: error handled
  • false: error not handled

Implemented in ApparatusFramework::Kernel.

© 2004-2010 bbv Software Services AG / Apparatus Services