org.apache.cocoon.components.xslt
Class XSLTProcessorErrorListener

java.lang.Object
  extended byorg.apache.cocoon.components.xslt.XSLTProcessorErrorListener
All Implemented Interfaces:
ErrorListener

public class XSLTProcessorErrorListener
extends Object
implements ErrorListener

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

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

Constructor Summary
XSLTProcessorErrorListener(Log 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

XSLTProcessorErrorListener

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