info.magnolia.freemarker
Class ModeDependentTemplateExceptionHandler
java.lang.Object
info.magnolia.freemarker.ModeDependentTemplateExceptionHandler
- All Implemented Interfaces:
- freemarker.template.TemplateExceptionHandler
public class ModeDependentTemplateExceptionHandler
- extends java.lang.Object
- implements freemarker.template.TemplateExceptionHandler
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.
- Version:
- $Id: $
- Author:
- gjoseph
Fields inherited from interface freemarker.template.TemplateExceptionHandler |
DEBUG_HANDLER, HTML_DEBUG_HANDLER, IGNORE_HANDLER, RETHROW_HANDLER |
Method Summary |
void |
handleTemplateException(freemarker.template.TemplateException te,
freemarker.core.Environment env,
java.io.Writer out)
|
protected void |
inEditMode(freemarker.template.TemplateException te,
freemarker.core.Environment env,
java.io.Writer out)
|
protected void |
inPublicMode(freemarker.template.TemplateException te,
freemarker.core.Environment env,
java.io.Writer out)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ModeDependentTemplateExceptionHandler
public ModeDependentTemplateExceptionHandler()
handleTemplateException
public void handleTemplateException(freemarker.template.TemplateException te,
freemarker.core.Environment env,
java.io.Writer out)
throws freemarker.template.TemplateException
- Specified by:
handleTemplateException
in interface freemarker.template.TemplateExceptionHandler
- Throws:
freemarker.template.TemplateException
inPublicMode
protected void inPublicMode(freemarker.template.TemplateException te,
freemarker.core.Environment env,
java.io.Writer out)
throws freemarker.template.TemplateException
- Throws:
freemarker.template.TemplateException
inEditMode
protected void inEditMode(freemarker.template.TemplateException te,
freemarker.core.Environment env,
java.io.Writer out)
throws freemarker.template.TemplateException
- Throws:
freemarker.template.TemplateException
Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.