Class ErrorListenerWrapper

java.lang.Object
org.exolab.adaptx.jaxp.transform.ErrorListenerWrapper
All Implemented Interfaces:
ErrorObserver

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 06:40:54 +0200 (Tue, 09 Sep 2003) $
Author:
Keith Visco
  • 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(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
    • 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, 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(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