org.carrot2.util.xslt
Class TransformerErrorListener

java.lang.Object
  extended by org.carrot2.util.xslt.TransformerErrorListener
All Implemented Interfaces:
ErrorListener

public final class TransformerErrorListener
extends Object
implements ErrorListener

An ErrorListener that reacts to errors when transforming (applying) a stylesheet.


Field Summary
 TransformerException exception
          We store the exception internally as a workaround to xalan, which reports TransformerException as RuntimeException (wrapped).
 
Constructor Summary
TransformerErrorListener()
           
 
Method Summary
 void error(TransformerException e)
           
 void fatalError(TransformerException e)
          Unrecoverable errors cause an exception to be rethrown.
 void warning(TransformerException e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

exception

public TransformerException exception
We store the exception internally as a workaround to xalan, which reports TransformerException as RuntimeException (wrapped).

Constructor Detail

TransformerErrorListener

public TransformerErrorListener()
Method Detail

warning

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

error

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

fatalError

public void fatalError(TransformerException e)
                throws TransformerException
Unrecoverable errors cause an exception to be rethrown.

Specified by:
fatalError in interface ErrorListener
Throws:
TransformerException


Copyright (c) Dawid Weiss, Stanislaw Osinski