org.exolab.adaptx.jaxp.transform

Class ErrorListenerWrapper

public class ErrorListenerWrapper extends Object implements ErrorObserver

A simple ErrorObserver implementation which wraps a JAXP 1.1 ErrorListener for use with Adaptx.

Version: $Revision: 3827 $ $Date: 2003-09-09 00:40:54 -0400 (Tue, 09 Sep 2003) $

Author: Keith Visco

Constructor Summary
ErrorListenerWrapper(ErrorListener listener)
Creates a new ErrorListerWrapper for the given ErrorListener
Method Summary
ErrorListenergetListener()
Returns the ErrorListener being wrapped by this ErrorListenerWrapper.
voidreceiveError(String message)
Signals an error message with normal level
voidreceiveError(String message, int level)
Signals an error message with the given error level
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

Constructor Detail

ErrorListenerWrapper

public ErrorListenerWrapper(ErrorListener listener)
Creates a new ErrorListerWrapper for the given ErrorListener

Parameters: listener the ErrorListener to create the wrapper for

Method Detail

getListener

public ErrorListener getListener()
Returns the ErrorListener being wrapped by this ErrorListenerWrapper.

Returns: the underlying ErrorListener

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 message with the given error level

Parameters: message the error message level the error level

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