com.atlassian.confluence.content.render.xhtml.transformers
Class ThrowExceptionOnFragmentTransformationError

java.lang.Object
  extended by com.atlassian.confluence.content.render.xhtml.transformers.ThrowExceptionOnFragmentTransformationError
All Implemented Interfaces:
FragmentTransformationErrorHandler

public class ThrowExceptionOnFragmentTransformationError
extends Object
implements FragmentTransformationErrorHandler

Just propagates the exception thrown in fragment transformation as a runtime exception.


Constructor Summary
ThrowExceptionOnFragmentTransformationError()
           
 
Method Summary
 String handle(XMLEventReader erroneousFragment, Exception transformationException)
          Handles fragment transformation problem.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThrowExceptionOnFragmentTransformationError

public ThrowExceptionOnFragmentTransformationError()
Method Detail

handle

public String handle(XMLEventReader erroneousFragment,
                     Exception transformationException)
Description copied from interface: FragmentTransformationErrorHandler
Handles fragment transformation problem.

Specified by:
handle in interface FragmentTransformationErrorHandler
Parameters:
erroneousFragment - reader over fragment that caused a transformation problem
transformationException - the exception thrown during transformation of the erroneous fragment.
Returns:
an alternate representation of the erroneous fragment in XML (that is more friendly to edit or display)


Copyright © 2003–2015 Atlassian. All rights reserved.