org.riotfamily.common.web.view.freemarker
Class ErrorPrintingExceptionHandler

java.lang.Object
  extended by org.riotfamily.common.web.view.freemarker.ErrorPrintingExceptionHandler
All Implemented Interfaces:
freemarker.template.TemplateExceptionHandler

public class ErrorPrintingExceptionHandler
extends Object
implements freemarker.template.TemplateExceptionHandler

TemplateExceptionHandler that prints the error message without stacktrace.

Since:
6.4
Author:
Felix Gnass [fgnass at neteye dot de]

Field Summary
 
Fields inherited from interface freemarker.template.TemplateExceptionHandler
DEBUG_HANDLER, HTML_DEBUG_HANDLER, IGNORE_HANDLER, RETHROW_HANDLER
 
Constructor Summary
ErrorPrintingExceptionHandler()
           
 
Method Summary
 void handleTemplateException(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
 

Constructor Detail

ErrorPrintingExceptionHandler

public ErrorPrintingExceptionHandler()
Method Detail

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