info.magnolia.freemarker
Class ModeDependentTemplateExceptionHandler

java.lang.Object
  extended by info.magnolia.freemarker.ModeDependentTemplateExceptionHandler
All Implemented Interfaces:
freemarker.template.TemplateExceptionHandler

Deprecated. since 4.5 - Replaced by info.magnolia.rendering.engine.ModeDependentRenderExceptionHandler.ModeDependentRenderExceptionHandler( ServerConfiguration) that can be set on the RenderingEngine.

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: $

Field Summary
 
Fields inherited from interface freemarker.template.TemplateExceptionHandler
DEBUG_HANDLER, HTML_DEBUG_HANDLER, IGNORE_HANDLER, RETHROW_HANDLER
 
Constructor Summary
ModeDependentTemplateExceptionHandler()
          Deprecated.  
 
Method Summary
 void handleTemplateException(freemarker.template.TemplateException te, freemarker.core.Environment env, Writer out)
          Deprecated.  
protected  void inEditMode(freemarker.template.TemplateException te, freemarker.core.Environment env, Writer out)
          Deprecated.  
protected  void inPublicMode(freemarker.template.TemplateException te, freemarker.core.Environment env, Writer out)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModeDependentTemplateExceptionHandler

public ModeDependentTemplateExceptionHandler()
Deprecated. 
Method Detail

handleTemplateException

public void handleTemplateException(freemarker.template.TemplateException te,
                                    freemarker.core.Environment env,
                                    Writer out)
                             throws freemarker.template.TemplateException
Deprecated. 
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
Deprecated. 
Throws:
freemarker.template.TemplateException

inEditMode

protected void inEditMode(freemarker.template.TemplateException te,
                          freemarker.core.Environment env,
                          Writer out)
                   throws freemarker.template.TemplateException
Deprecated. 
Throws:
freemarker.template.TemplateException


Copyright © 2003-2013 Magnolia International Ltd.. All Rights Reserved.