Class TransformErrorToHtmlPlaceholder
java.lang.Object
com.atlassian.confluence.content.render.xhtml.transformers.TransformErrorToHtmlPlaceholder
- All Implemented Interfaces:
FragmentTransformationErrorHandler
public class TransformErrorToHtmlPlaceholder
extends Object
implements FragmentTransformationErrorHandler
Transforms erroneous fragment into an error placeholder which can be displayed in the editor and on view.
-
Constructor Summary
ConstructorDescriptionTransformErrorToHtmlPlaceholder
(PlaceholderUrlFactory placeholderUrlFactory) -
Method Summary
Modifier and TypeMethodDescriptionhandle
(XMLEventReader erroneousFragmentReader, Exception transformationException) Handles fragment transformation problem.
-
Constructor Details
-
TransformErrorToHtmlPlaceholder
-
-
Method Details
-
handle
Description copied from interface:FragmentTransformationErrorHandler
Handles fragment transformation problem.- Specified by:
handle
in interfaceFragmentTransformationErrorHandler
- Parameters:
erroneousFragmentReader
- 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)
-