Uses of Interface
freemarker.template.TemplateExceptionHandler
Packages that use TemplateExceptionHandler
Package
Description
The seldom used or advanced parts of the fundamental FreeMarker API, compared to
freemarker.template.The fundamental, most commonly used API-s of FreeMarker;
start with
Configuration (see also the
Getting Started in the Manual.)-
Uses of TemplateExceptionHandler in freemarker.core
Methods in freemarker.core that return TemplateExceptionHandlerModifier and TypeMethodDescriptionConfigurable.getTemplateExceptionHandler()The getter pair ofConfigurable.setTemplateExceptionHandler(TemplateExceptionHandler).Methods in freemarker.core with parameters of type TemplateExceptionHandlerModifier and TypeMethodDescriptionvoidConfigurable.setTemplateExceptionHandler(TemplateExceptionHandler templateExceptionHandler) Sets the exception handler used to handle exceptions occurring inside templates.voidEnvironment.setTemplateExceptionHandler(TemplateExceptionHandler templateExceptionHandler) -
Uses of TemplateExceptionHandler in freemarker.template
Fields in freemarker.template declared as TemplateExceptionHandlerModifier and TypeFieldDescriptionstatic final TemplateExceptionHandlerTemplateExceptionHandler.DEBUG_HANDLERTemplateExceptionHandleruseful when you are developing non-HTML templates.static final TemplateExceptionHandlerTemplateExceptionHandler.HTML_DEBUG_HANDLERTemplateExceptionHandleruseful when you are developing HTML templates.static final TemplateExceptionHandlerTemplateExceptionHandler.IGNORE_HANDLERTemplateExceptionHandlerthat simply skips the failing instructions, letting the template continue executing.static final TemplateExceptionHandlerTemplateExceptionHandler.RETHROW_HANDLERTemplateExceptionHandlerthat simply re-throws the exception; this should be used in most production systems.Methods in freemarker.template with parameters of type TemplateExceptionHandlerModifier and TypeMethodDescriptionvoidConfiguration.setTemplateExceptionHandler(TemplateExceptionHandler templateExceptionHandler)