Class ThrowExceptionOnFragmentTransformationError
- java.lang.Object
-
- 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
Constructors Constructor Description ThrowExceptionOnFragmentTransformationError()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
handle(XMLEventReader erroneousFragment, Exception transformationException)
Handles fragment transformation problem.
-
-
-
Method Detail
-
handle
public String handle(XMLEventReader erroneousFragment, Exception transformationException)
Description copied from interface:FragmentTransformationErrorHandler
Handles fragment transformation problem.- Specified by:
handle
in interfaceFragmentTransformationErrorHandler
- Parameters:
erroneousFragment
- reader over fragment that caused a transformation problemtransformationException
- 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)
-
-