Class DebugWithoutThrowingExceptionHandler

  • All Implemented Interfaces:
    freemarker.template.TemplateExceptionHandler

    public class DebugWithoutThrowingExceptionHandler
    extends Object
    implements freemarker.template.TemplateExceptionHandler
    A TemplateExceptionHandler which works like the TemplateExceptionHandler.DEBUG_HANDLER but doesn't rethrow the exception. This means the page rendering is not aborted.
    • Constructor Detail

      • DebugWithoutThrowingExceptionHandler

        public DebugWithoutThrowingExceptionHandler()
    • 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