| Package | Description |
|---|---|
| freemarker.core |
The seldom used or advanced parts of the fundamental FreeMarker API, compared to
freemarker.template. |
| freemarker.template |
The fundamental, most commonly used API-s of FreeMarker;
start with
Configuration (also see
Getting Stared in the Manual.) |
| Modifier and Type | Method and Description |
|---|---|
TemplateExceptionHandler |
Configurable.getTemplateExceptionHandler()
The getter pair of
Configurable.setTemplateExceptionHandler(TemplateExceptionHandler). |
| Modifier and Type | Method and Description |
|---|---|
void |
Environment.setTemplateExceptionHandler(TemplateExceptionHandler templateExceptionHandler) |
void |
Configurable.setTemplateExceptionHandler(TemplateExceptionHandler templateExceptionHandler)
Sets the exception handler used to handle exceptions occurring inside templates.
|
| Modifier and Type | Field and Description |
|---|---|
static TemplateExceptionHandler |
TemplateExceptionHandler.DEBUG_HANDLER
TemplateExceptionHandler useful when you developing non-HTML templates. |
static TemplateExceptionHandler |
TemplateExceptionHandler.HTML_DEBUG_HANDLER
TemplateExceptionHandler useful when you developing HTML templates. |
static TemplateExceptionHandler |
TemplateExceptionHandler.IGNORE_HANDLER
TemplateExceptionHandler that simply skips the failing instructions, letting the template continue
executing. |
static TemplateExceptionHandler |
TemplateExceptionHandler.RETHROW_HANDLER
TemplateExceptionHandler that simply re-throws the exception; this should be used in most production
systems. |