info.magnolia.rendering.engine
Class ModeDependentRenderExceptionHandler
java.lang.Object
info.magnolia.rendering.engine.ModeDependentRenderExceptionHandler
- All Implemented Interfaces:
- RenderExceptionHandler
public class ModeDependentRenderExceptionHandler
- extends Object
- implements RenderExceptionHandler
Exception handler providing different output based on the configuration of the current instance. Full stacktrace gets
rendered on the author instance only, while ignoring the stacktraces in preview mode and on public instances.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RENDER_ERROR_MESSAGE_BEGIN
public static final String RENDER_ERROR_MESSAGE_BEGIN
- See Also:
- Constant Field Values
RENDER_ERROR_MESSAGE_END
public static final String RENDER_ERROR_MESSAGE_END
- See Also:
- Constant Field Values
ModeDependentRenderExceptionHandler
@Inject
public ModeDependentRenderExceptionHandler(ServerConfiguration config)
handleException
public void handleException(RenderException renderException,
RenderingContext renderingContext)
- Specified by:
handleException
in interface RenderExceptionHandler
inPublicMode
protected void inPublicMode(String msg,
RenderException renderException,
PrintWriter out)
inEditMode
protected void inEditMode(String msg,
RenderException renderException,
PrintWriter out)
Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.