org.apache.cocoon.sax.component
Class TraxErrorListener

java.lang.Object
  extended by org.apache.cocoon.sax.component.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.

Version:
$Id: TraxErrorListener.html 1343757 2012-05-29 14:45:42Z ilgrosso $

Constructor Summary
TraxErrorListener(org.slf4j.Logger log, 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(org.slf4j.Logger log,
                         String uri)
Method Detail

error

public void error(TransformerException ex)
           throws TransformerException

Specified by:
error in interface ErrorListener
Throws:
TransformerException
See Also:
ErrorListener.error(javax.xml.transform.TransformerException)

fatalError

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

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


Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.