| 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 (see also the
Getting Stared in the Manual.) |
| Modifier and Type | Method | Description |
|---|---|---|
TemplateExceptionHandler |
Configurable.getTemplateExceptionHandler() |
The getter pair of
Configurable.setTemplateExceptionHandler(TemplateExceptionHandler). |
| Modifier and Type | Method | Description |
|---|---|---|
void |
Configurable.setTemplateExceptionHandler(TemplateExceptionHandler templateExceptionHandler) |
Sets the exception handler used to handle exceptions occurring inside templates.
|
void |
Environment.setTemplateExceptionHandler(TemplateExceptionHandler templateExceptionHandler) |
| Modifier and Type | Field | 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. |
| Modifier and Type | Method | Description |
|---|---|---|
void |
Configuration.setTemplateExceptionHandler(TemplateExceptionHandler templateExceptionHandler) |