org.ikasan.framework.component.transformation
Class ExceptionThrowingErrorListener

java.lang.Object
  extended by org.ikasan.framework.component.transformation.ExceptionThrowingErrorListener
All Implemented Interfaces:
ErrorListener

public class ExceptionThrowingErrorListener
extends Object
implements ErrorListener

Simple implementation of ErrorListener capable of directly rethrowing the exception

Author:
Ikasan Development Team

Constructor Summary
ExceptionThrowingErrorListener()
          Constructor
ExceptionThrowingErrorListener(boolean throwExceptionOnError, boolean throwExceptionOnFatalError, boolean throwExceptionOnWarning)
          Constructor
 
Method Summary
 void error(TransformerException exception)
           
 void fatalError(TransformerException exception)
           
 void setThrowExceptionOnError(boolean throwExceptionOnError)
          Setter method for throwExceptionOnError flag
 void setThrowExceptionOnFatalError(boolean throwExceptionOnFatalError)
          Setter method for throwExceptionOnFatalError flag
 void setThrowExceptionOnWarning(boolean throwExceptionOnWarning)
          Setter method for throwExceptionOnWarning flag
 void warning(TransformerException exception)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionThrowingErrorListener

public ExceptionThrowingErrorListener(boolean throwExceptionOnError,
                                      boolean throwExceptionOnFatalError,
                                      boolean throwExceptionOnWarning)
Constructor

Parameters:
throwExceptionOnError -
throwExceptionOnFatalError -
throwExceptionOnWarning -

ExceptionThrowingErrorListener

public ExceptionThrowingErrorListener()
Constructor

Method Detail

setThrowExceptionOnError

public void setThrowExceptionOnError(boolean throwExceptionOnError)
Setter method for throwExceptionOnError flag

Parameters:
throwExceptionOnError -

setThrowExceptionOnFatalError

public void setThrowExceptionOnFatalError(boolean throwExceptionOnFatalError)
Setter method for throwExceptionOnFatalError flag

Parameters:
throwExceptionOnFatalError -

setThrowExceptionOnWarning

public void setThrowExceptionOnWarning(boolean throwExceptionOnWarning)
Setter method for throwExceptionOnWarning flag

Parameters:
throwExceptionOnWarning -

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

warning

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


Copyright © 2007-2012 Ikasan. All Rights Reserved.