org.exolab.adaptx.jaxp.transform

Class ErrorListenerWrapper

Implemented Interfaces:
ErrorObserver

public class ErrorListenerWrapper
extends java.lang.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

Fields inherited from interface org.exolab.adaptx.util.ErrorObserver

FATAL, NORMAL, WARNING

Constructor Summary

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

Method Summary

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

Constructor Details

ErrorListenerWrapper

public ErrorListenerWrapper(ErrorListener listener)
Creates a new ErrorListerWrapper for the given ErrorListener
Parameters:
listener - the ErrorListener to create the wrapper for

Method Details

getListener

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

receiveError

public void receiveError(Exception exception)
Signals an error with normal level
Specified by:
receiveError in interface ErrorObserver
Parameters:
exception - the Exception that caused the error

receiveError

public void receiveError(Exception exception,
                         String message)
Signals an error with normal level
Specified by:
receiveError in interface ErrorObserver
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,
                         String message,
                         int level)
Signals an error with the given error level
Specified by:
receiveError in interface ErrorObserver
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(Exception exception,
                         int level)
Signals an error with the given error level
Specified by:
receiveError in interface ErrorObserver
Parameters:
exception - the Exception that caused the error
level - the error level

receiveError

public void receiveError(String message)
Signals an error message with normal level
Specified by:
receiveError in interface ErrorObserver
Parameters:
message - the error message

receiveError

public void receiveError(String message,
                         int level)
Signals an error message with the given error level
Specified by:
receiveError in interface ErrorObserver
Parameters:
message - the error message
level - the error level