Class ErrorObserverAdapter
java.lang.Object
org.exolab.adaptx.util.ErrorObserverAdapter
- All Implemented Interfaces:
ErrorObserver
- Direct Known Subclasses:
ProcessorCallback, ResultFormatter, RuleProcessor, StylesheetHandler, XSLTProcessor, XSLTReader
An adapter which allows adding and removing error observers
- Version:
- $Revision: 3633 $ $Date: 2003-03-01 08:38:44 +0100 (Sat, 01 Mar 2003) $
- Author:
- Keith Visco
-
Field Summary
Fields inherited from interface ErrorObserver
FATAL, NORMAL, WARNING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddErrorObserver(ErrorObserver observer) Adds the given ErrorObserver to this DefaultObservervoidreceiveError(Exception exception) Signals an error with normal levelvoidreceiveError(Exception exception, int level) Signals an error with the given error levelvoidreceiveError(Exception exception, String message) Signals an error with normal levelvoidreceiveError(Exception exception, String message, int level) Signals an error with the given error levelvoidreceiveError(String message) Signals an error message with normal levelvoidreceiveError(String message, int level) Signals an error with the given error levelvoidRemoves all the ErrorObservers from the cascading ErrorObserver listvoidremoveErrorObserver(ErrorObserver observer) Removes the given ErrorObserver from the cascading ErrorObserver list
-
Constructor Details
-
ErrorObserverAdapter
public ErrorObserverAdapter()
-
-
Method Details
-
addErrorObserver
Adds the given ErrorObserver to this DefaultObserver- Parameters:
observer- the ErrorObserver to add
-
receiveError
Signals an error with normal level- Specified by:
receiveErrorin interfaceErrorObserver- Parameters:
exception- the Exception that caused the error
-
receiveError
Signals an error with normal level- Specified by:
receiveErrorin interfaceErrorObserver- Parameters:
exception- the Exception that caused the errormessage- an option message, used when additional information can be provided.
-
receiveError
Signals an error with the given error level- Specified by:
receiveErrorin interfaceErrorObserver- Parameters:
exception- the Exception that caused the errorlevel- the error level
-
receiveError
Signals an error with the given error level- Specified by:
receiveErrorin interfaceErrorObserver- Parameters:
exception- the Exception that caused the errormessage- an option message, used when additional information can be provided.level- the error level
-
receiveError
Signals an error message with normal level- Specified by:
receiveErrorin interfaceErrorObserver- Parameters:
message- the error message
-
receiveError
Signals an error with the given error level- Specified by:
receiveErrorin interfaceErrorObserver- Parameters:
message- the error messagelevel- the error level
-
removeAllErrorObservers
public void removeAllErrorObservers()Removes all the ErrorObservers from the cascading ErrorObserver list -
removeErrorObserver
Removes the given ErrorObserver from the cascading ErrorObserver list- Parameters:
observer- the ErrorObserver to remove
-