org.exolab.adaptx.util

Class ErrorObserverAdapter

public abstract class ErrorObserverAdapter extends Object implements ErrorObserver

An adapter which allows adding and removing error observers

Version: $Revision: 3633 $ $Date: 2003-03-01 02:38:44 -0500 (Sat, 01 Mar 2003) $

Author: Keith Visco

Method Summary
voidaddErrorObserver(ErrorObserver observer)
Adds the given ErrorObserver to this DefaultObserver
voidreceiveError(Exception exception)
Signals an error with normal level
voidreceiveError(Exception exception, String message)
Signals an error with normal level
voidreceiveError(Exception exception, int level)
Signals an error with the given error level
voidreceiveError(Exception exception, String message, int level)
Signals an error with the given error level
voidreceiveError(String message)
Signals an error message with normal level
voidreceiveError(String message, int level)
Signals an error with the given error level
voidremoveAllErrorObservers()
Removes all the ErrorObservers from the cascading ErrorObserver list
voidremoveErrorObserver(ErrorObserver observer)
Removes the given ErrorObserver from the cascading ErrorObserver list

Method Detail

addErrorObserver

public void addErrorObserver(ErrorObserver observer)
Adds the given ErrorObserver to this DefaultObserver

Parameters: observer the ErrorObserver to add

receiveError

public void receiveError(Exception exception)
Signals an error with normal level

Parameters: exception the Exception that caused the error

receiveError

public void receiveError(Exception exception, String message)
Signals an error with normal level

Parameters: exception the Exception that caused the error message an option message, used when additional information can be provided.

receiveError

public void receiveError(Exception exception, int level)
Signals an error with the given error level

Parameters: exception the Exception that caused the error level the error level

receiveError

public void receiveError(Exception exception, String message, int level)
Signals an error with the given error level

Parameters: exception the Exception that caused the error message an option message, used when additional information can be provided. level the error level

receiveError

public void receiveError(String message)
Signals an error message with normal level

Parameters: message the error message

receiveError

public void receiveError(String message, int level)
Signals an error with the given error level

Parameters: message the error message level the error level

removeAllErrorObservers

public void removeAllErrorObservers()
Removes all the ErrorObservers from the cascading ErrorObserver list

removeErrorObserver

public void removeErrorObserver(ErrorObserver observer)
Removes the given ErrorObserver from the cascading ErrorObserver list

Parameters: observer the ErrorObserver to remove