info.magnolia.freemarker
Class ModeDependentTemplateExceptionHandler
java.lang.Object
info.magnolia.freemarker.ModeDependentTemplateExceptionHandler
- All Implemented Interfaces:
- freemarker.template.TemplateExceptionHandler
public class ModeDependentTemplateExceptionHandler
- extends 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,
Writer out)
|
protected void |
inEditMode(freemarker.template.TemplateException te,
freemarker.core.Environment env,
Writer out)
|
protected void |
inPublicMode(freemarker.template.TemplateException te,
freemarker.core.Environment env,
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,
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,
Writer out)
throws freemarker.template.TemplateException
- Throws:
freemarker.template.TemplateException
inEditMode
protected void inEditMode(freemarker.template.TemplateException te,
freemarker.core.Environment env,
Writer out)
throws freemarker.template.TemplateException
- Throws:
freemarker.template.TemplateException
Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.