Package org.exolab.adaptx.jaxp.transform
Class ErrorListenerWrapper
java.lang.Object
org.exolab.adaptx.jaxp.transform.ErrorListenerWrapper
- All Implemented Interfaces:
ErrorObserver
A simple ErrorObserver implementation which wraps
a JAXP 1.1 ErrorListener for use with Adaptx.
- Version:
- $Revision: 3827 $ $Date: 2003-09-09 06:40:54 +0200 (Tue, 09 Sep 2003) $
- Author:
- Keith Visco
-
Field Summary
Fields inherited from interface org.exolab.adaptx.util.ErrorObserver
FATAL, NORMAL, WARNING
-
Constructor Summary
ConstructorsConstructorDescriptionErrorListenerWrapper
(ErrorListener listener) Creates a new ErrorListerWrapper for the given ErrorListener -
Method Summary
Modifier and TypeMethodDescriptionReturns the ErrorListener being wrapped by this ErrorListenerWrapper.void
receiveError
(Exception exception) Signals an error with normal levelvoid
receiveError
(Exception exception, int level) Signals an error with the given error levelvoid
receiveError
(Exception exception, String message) Signals an error with normal levelvoid
receiveError
(Exception exception, String message, int level) Signals an error with the given error levelvoid
receiveError
(String message) Signals an error message with normal levelvoid
receiveError
(String message, int level) Signals an error message with the given error level
-
Constructor Details
-
ErrorListenerWrapper
Creates a new ErrorListerWrapper for the given ErrorListener- Parameters:
listener
- the ErrorListener to create the wrapper for
-
-
Method Details
-
getListener
Returns the ErrorListener being wrapped by this ErrorListenerWrapper.- Returns:
- the underlying ErrorListener
-
receiveError
Signals an error message with normal level- Specified by:
receiveError
in interfaceErrorObserver
- Parameters:
message
- the error message
-
receiveError
Signals an error message with the given error level- Specified by:
receiveError
in interfaceErrorObserver
- Parameters:
message
- the error messagelevel
- the error level
-
receiveError
Signals an error with normal level- Specified by:
receiveError
in interfaceErrorObserver
- Parameters:
exception
- the Exception that caused the error
-
receiveError
Signals an error with normal level- Specified by:
receiveError
in 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:
receiveError
in interfaceErrorObserver
- Parameters:
exception
- the Exception that caused the errorlevel
- the error level
-
receiveError
Signals an error with the given error level- Specified by:
receiveError
in interfaceErrorObserver
- Parameters:
exception
- the Exception that caused the errormessage
- an option message, used when additional information can be provided.level
- the error level
-