stromx  0.8.0
Public Types | Public Member Functions | List of all members
stromx::runtime::ExceptionObserver Class Referenceabstract

Abstract base observer of operator exceptions. More...

#include <ExceptionObserver.h>

Public Types

enum  Phase {
  INITIALIZATION, ACTIVATION, EXECUTION, INTERRUPT,
  DEACTIVATION, DEINITIALIZATION, PARAMETER_ACCESS
}
 

Public Member Functions

virtual void observe (const Phase phase, const OperatorError &ex, const Thread *const thread) const =0
 

Detailed Description

Abstract base observer of operator exceptions.

Member Enumeration Documentation

§ Phase

The different phases in which an operator can cause exceptions to be thrown.

Enumerator
INITIALIZATION 

Initialization of the operator.

ACTIVATION 

Activation of the operator.

EXECUTION 

Execution of the operator.

INTERRUPT 

Deactivation of the operator.

DEACTIVATION 

Interrupt of the operator.

DEINITIALIZATION 

Deinitialization of the operator.

PARAMETER_ACCESS 

Accessing a parameter.

Member Function Documentation

§ observe()

virtual void stromx::runtime::ExceptionObserver::observe ( const Phase  phase,
const OperatorError ex,
const Thread *const  thread 
) const
pure virtual

Informs the observer that an operator has thrown an exception.

Parameters
phaseThe phase during which the exception was thrown.
exThe exception.
threadThe thread in which context the exception was thrown or 0 if the the thread is not a stromx::Thread object.

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