org.apache.cocoon.util
Class TraxErrorHandler

java.lang.Object
  extended by org.apache.cocoon.util.TraxErrorHandler
All Implemented Interfaces:
ErrorListener

public class TraxErrorHandler
extends Object
implements ErrorListener

This ErrorListener simply logs the exception and in case of an fatal-error the exception is rethrown. Warnings and errors are ignored.

Version:
CVS $Id: TraxErrorHandler.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Carsten Ziegeler

Constructor Summary
TraxErrorHandler(Logger logger)
           
 
Method Summary
 void error(TransformerException exception)
           
 void fatalError(TransformerException exception)
           
 void warning(TransformerException exception)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TraxErrorHandler

public TraxErrorHandler(Logger logger)
Method Detail

warning

public void warning(TransformerException exception)
             throws TransformerException
Specified by:
warning in interface ErrorListener
Throws:
TransformerException

error

public void error(TransformerException exception)
           throws TransformerException
Specified by:
error in interface ErrorListener
Throws:
TransformerException

fatalError

public void fatalError(TransformerException exception)
                throws TransformerException
Specified by:
fatalError in interface ErrorListener
Throws:
TransformerException


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.