org.apache.cocoon.components.xslt
Class TraxErrorListener

java.lang.Object
  extended by org.apache.cocoon.components.xslt.TraxErrorListener
All Implemented Interfaces:
ErrorListener

public class TraxErrorListener
extends Object
implements ErrorListener

A smart error listener for javax.xml.tranform that does its best to provide useful error messages.

Since:
2.1.8
Version:
$Id: TraxErrorListener.html 1304258 2012-03-23 10:09:27Z ilgrosso $

Constructor Summary
TraxErrorListener(Logger logger, String uri)
           
 
Method Summary
 void error(TransformerException ex)
           
 void fatalError(TransformerException ex)
           
 Throwable getThrowable()
          Get the exception that was catched by this listener, if any.
 void warning(TransformerException ex)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TraxErrorListener

public TraxErrorListener(Logger logger,
                         String uri)
Method Detail

getThrowable

public Throwable getThrowable()
Get the exception that was catched by this listener, if any.

Returns:
the exception

warning

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

error

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

fatalError

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


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