org.exolab.adaptx.jaxp.transform
Class ErrorListenerWrapper
java.lang.Objectorg.exolab.adaptx.jaxp.transform.ErrorListenerWrapper
- ErrorObserver
public class ErrorListenerWrapper
extends java.lang.Object
A simple ErrorObserver implementation which wraps
a JAXP 1.1 ErrorListener for use with Adaptx.
$Revision: 3827 $ $Date: 2003-09-09 06:40:54 +0200 (Tue, 09 Sep 2003) $
ErrorListenerWrapper(ErrorListener listener)- Creates a new ErrorListerWrapper for the given
ErrorListener
|
ErrorListener | getListener()- Returns the ErrorListener being wrapped by this
ErrorListenerWrapper.
|
void | receiveError(Exception exception)- Signals an error with normal level
|
void | receiveError(Exception exception, String message)- Signals an error with normal level
|
void | receiveError(Exception exception, String message, int level)- Signals an error with the given error level
|
void | receiveError(Exception exception, int level)- Signals an error with the given error level
|
void | receiveError(String message)- Signals an error message with normal level
|
void | receiveError(String message, int level)- Signals an error message with the given error level
|
ErrorListenerWrapper
public ErrorListenerWrapper(ErrorListener listener)
Creates a new ErrorListerWrapper for the given
ErrorListener
listener - the ErrorListener to create the
wrapper for
getListener
public ErrorListener getListener()
Returns the ErrorListener being wrapped by this
ErrorListenerWrapper.
- the underlying ErrorListener
receiveError
public void receiveError(Exception exception)
Signals an error with normal level
- receiveError in interface ErrorObserver
exception - the Exception that caused the error
receiveError
public void receiveError(Exception exception,
String message) Signals an error with normal level
- receiveError in interface ErrorObserver
exception - the Exception that caused the errormessage - an option message, used when additional information
can be provided.
receiveError
public void receiveError(Exception exception,
String message,
int level) Signals an error with the given error level
- receiveError in interface ErrorObserver
exception - the Exception that caused the errormessage - an option message, used when additional information
can be provided.level - the error level
receiveError
public void receiveError(Exception exception,
int level) Signals an error with the given error level
- receiveError in interface ErrorObserver
exception - the Exception that caused the errorlevel - the error level
receiveError
public void receiveError(String message)
Signals an error message with normal level
- receiveError in interface ErrorObserver
message - the error message
receiveError
public void receiveError(String message,
int level) Signals an error message with the given error level
- receiveError in interface ErrorObserver
message - the error messagelevel - the error level