Class ErrorReportingV2Renderer
- java.lang.Object
 - 
- com.atlassian.confluence.content.render.xhtml.migration.ErrorReportingV2Renderer
 
 
- 
- All Implemented Interfaces:
 com.atlassian.renderer.v2.MutableRenderer,com.atlassian.renderer.v2.Renderer
public class ErrorReportingV2Renderer extends Object implements com.atlassian.renderer.v2.MutableRenderer
Extend the V2Render with a new method where a writeable List can be supplied to collect any exceptions thrown during renderering. (Rendering will still complete, and the report will be populated as a side effect.) 
- 
- 
Constructor Summary
Constructors Constructor Description ErrorReportingV2Renderer(List<com.atlassian.renderer.v2.components.RendererComponent> components, Marshaller<MacroDefinition> wikiMarkupMacroMarshaller) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetRendererType()Stringrender(String originalContent, com.atlassian.renderer.RenderContext renderContext)Stringrender(String originalContent, com.atlassian.renderer.RenderContext renderContext, List<RuntimeException> exceptions)Render the supplied wiki content.StringrenderAsText(String originalContent, com.atlassian.renderer.RenderContext context)voidsetComponents(List components) 
 - 
 
- 
- 
Constructor Detail
- 
ErrorReportingV2Renderer
public ErrorReportingV2Renderer(List<com.atlassian.renderer.v2.components.RendererComponent> components, Marshaller<MacroDefinition> wikiMarkupMacroMarshaller)
 
 - 
 
- 
Method Detail
- 
render
public String render(String originalContent, com.atlassian.renderer.RenderContext renderContext, List<RuntimeException> exceptions)
Render the supplied wiki content.- Parameters:
 originalContent- the content to renderrenderContext- the context for the renderexceptions- a List that will be populated with any exceptions thrown during rendering- Returns:
 - the XHTML version of the supplied wiki text
 
 
- 
render
public String render(String originalContent, com.atlassian.renderer.RenderContext renderContext)
- Specified by:
 renderin interfacecom.atlassian.renderer.v2.Renderer
 
- 
getRendererType
public String getRendererType()
- Specified by:
 getRendererTypein interfacecom.atlassian.renderer.v2.Renderer
 
- 
setComponents
public void setComponents(List components)
- Specified by:
 setComponentsin interfacecom.atlassian.renderer.v2.MutableRenderer
 
 - 
 
 -