com.deltaxml.sync.jaxp
Class DefaultErrorHandler

java.lang.Object
  extended by com.deltaxml.sync.jaxp.DefaultErrorHandler
All Implemented Interfaces:
ErrorListener

public class DefaultErrorHandler
extends Object
implements ErrorListener

Provides the built-in default ErrorListener if the user does not set one using the Synchronizer.setErrorListener(ErrorListener) method.

It reports all warnings, errors and fatal errors to System.err.

Version:
$Revision: 3109 $
Author:
Nigel Whitaker
See Also:
ErrorListener, Synchronizer.setErrorListener(ErrorListener)

Constructor Summary
DefaultErrorHandler()
          Construct a new DefaultErrorHandler.
 
Method Summary
 void error(SynchronizerProcessingException e)
          Reports errors to System.err.
 void fatalError(SynchronizerProcessingException e)
          Reports fatal errors to System.err.
 void warning(SynchronizerProcessingException e)
          Reports warnings to System.err.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultErrorHandler

public DefaultErrorHandler()
Construct a new DefaultErrorHandler.

Method Detail

warning

public void warning(SynchronizerProcessingException e)
             throws SynchronizerProcessingException
Reports warnings to System.err. Although this method is declared to throw a SynchronizerProcessingException in order to comply with the ErrorListener interface, this implementation method, by design, will not throw this exception.

Specified by:
warning in interface ErrorListener
Parameters:
e - An exception providing details of the warning
Throws:
SynchronizerProcessingException - this implementation by design does not throw this exception

fatalError

public void fatalError(SynchronizerProcessingException e)
                throws SynchronizerProcessingException
Reports fatal errors to System.err. Although this method is declared to throw a SynchronizerProcessingException in order to comply with the ErrorListener interface, this implementation method, by design, will not throw this exception.

Specified by:
fatalError in interface ErrorListener
Parameters:
e - An exception providing details of the fatal error
Throws:
SynchronizerProcessingException - this implementation by design does not throw this exception

error

public void error(SynchronizerProcessingException e)
           throws SynchronizerProcessingException
Reports errors to System.err. Although this method is declared to throw a SynchronizerProcessingException in order to comply with the ErrorListener interface, this implementation method, by design, will not throw this exception.

Specified by:
error in interface ErrorListener
Parameters:
e - An exception providing details of the error
Throws:
SynchronizerProcessingException - this implementation by design does not throw this exception


© 2006-2007 DeltaXML Ltd. All Rights Reserved.