org.apache.cocoon.util
Class TraxErrorHandler

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

public class TraxErrorHandler
extends Object
implements ErrorListener

This error handler simply logs all exception and, in case of a fatal error, the exception is rethrown. Warnings and errors are not re-thrown.

Version:
$Id: TraxErrorHandler.html 1304280 2012-03-23 11:18:01Z ilgrosso $

Constructor Summary
TraxErrorHandler()
           
TraxErrorHandler(Log logger)
           
TraxErrorHandler(Logger logger)
          Deprecated. Use TraxErrorHandler(Log). }
 
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()

TraxErrorHandler

public TraxErrorHandler(Log logger)

TraxErrorHandler

public TraxErrorHandler(Logger logger)
Deprecated. Use TraxErrorHandler(Log). }

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-2008 The Apache Software Foundation. All Rights Reserved.