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 TypeMethodDescriptionvoid
Configurable.setTemplateExceptionHandler
(TemplateExceptionHandler templateExceptionHandler) Sets the exception handler used to handle exceptions occurring inside templates.void
Environment.setTemplateExceptionHandler
(TemplateExceptionHandler templateExceptionHandler) -
Uses of TemplateExceptionHandler in freemarker.template
Fields in freemarker.template declared as TemplateExceptionHandlerModifier and TypeFieldDescriptionstatic final TemplateExceptionHandler
TemplateExceptionHandler.DEBUG_HANDLER
TemplateExceptionHandler
useful when you are developing non-HTML templates.static final TemplateExceptionHandler
TemplateExceptionHandler.HTML_DEBUG_HANDLER
TemplateExceptionHandler
useful when you are developing HTML templates.static final TemplateExceptionHandler
TemplateExceptionHandler.IGNORE_HANDLER
TemplateExceptionHandler
that simply skips the failing instructions, letting the template continue executing.static final TemplateExceptionHandler
TemplateExceptionHandler.RETHROW_HANDLER
TemplateExceptionHandler
that simply re-throws the exception; this should be used in most production systems.Methods in freemarker.template with parameters of type TemplateExceptionHandlerModifier and TypeMethodDescriptionvoid
Configuration.setTemplateExceptionHandler
(TemplateExceptionHandler templateExceptionHandler)