public class ModeDependentRenderExceptionHandler extends Object implements RenderExceptionHandler
Modifier and Type | Field and Description |
---|---|
static String |
RENDER_ERROR_MESSAGE_BEGIN |
static String |
RENDER_ERROR_MESSAGE_END |
Constructor and Description |
---|
ModeDependentRenderExceptionHandler(info.magnolia.cms.beans.config.ServerConfiguration config,
javax.inject.Provider<info.magnolia.cms.core.AggregationState> aggregationStateProvider) |
Modifier and Type | Method and Description |
---|---|
void |
handleException(RenderException renderException,
Appendable out)
Handles exception and can print informations to passed output.
|
void |
handleException(RenderException renderException,
RenderingContext renderingContext)
Handles exception and provides informations from
RenderingContext . |
protected void |
inEditMode(String msg,
RenderException renderException,
PrintWriter out) |
protected void |
inPublicMode(String msg,
RenderException renderException,
PrintWriter out) |
public static final String RENDER_ERROR_MESSAGE_BEGIN
public static final String RENDER_ERROR_MESSAGE_END
@Inject public ModeDependentRenderExceptionHandler(info.magnolia.cms.beans.config.ServerConfiguration config, javax.inject.Provider<info.magnolia.cms.core.AggregationState> aggregationStateProvider)
public void handleException(RenderException renderException, RenderingContext renderingContext)
RenderExceptionHandler
RenderingContext
. Meant to be used in rendering process (in RenderingFilter
).handleException
in interface RenderExceptionHandler
public void handleException(RenderException renderException, Appendable out)
RenderExceptionHandler
RenderingFilter
).handleException
in interface RenderExceptionHandler
protected void inPublicMode(String msg, RenderException renderException, PrintWriter out)
protected void inEditMode(String msg, RenderException renderException, PrintWriter out)
Copyright © 2003–2017 Magnolia International Ltd.. All rights reserved.