de.cau.cs.kieler.core.ui.errorhandler
Interface GenericErrorHandler.StatusListener

All Known Implementing Classes:
AutomationManager, ModelErrorHandler
Enclosing class:
GenericErrorHandler

public static interface GenericErrorHandler.StatusListener

Classes implementing this interface will be notified when a non-fatal exception passes through the error handler. The notified components can then decide if they want to modify the style of the exception. StatusManager.BLOCK StatusManager.SHOW StatusManager.LOG StatusManager.NONE

Rating proposed yellow
(2010-02-12)

Field Summary
static int DONT_CARE
          Indicates that the component doesn't care about the style of the error.
 
Method Summary
 int reroute(StatusAdapter statusAdapter, int style)
          Reroute the exception to the given listener.
 

Field Detail

DONT_CARE

static final int DONT_CARE
Indicates that the component doesn't care about the style of the error.

See Also:
Constant Field Values
Method Detail

reroute

int reroute(StatusAdapter statusAdapter,
            int style)
Reroute the exception to the given listener. If the listener wants to modify the style it should return the style that it wants the exception to have. If the component doesn't care about that particular exception it should return the DONT_CARE style.

Parameters:
statusAdapter - the status adapter
style - the style
Returns:
the style that the status should have