public interface TemplateExceptionHandler
| Modifier and Type | Field and Description |
|---|---|
static TemplateExceptionHandler |
DEBUG_HANDLER
This is a TemplateExceptionHandler used when you develop the templates.
|
static TemplateExceptionHandler |
HTML_DEBUG_HANDLER
This is a TemplateExceptionHandler used when you develop HTML templates.
|
static TemplateExceptionHandler |
IGNORE_HANDLER
This is a TemplateExceptionHandler which simply skips errors.
|
static TemplateExceptionHandler |
RETHROW_HANDLER
This is a TemplateExceptionHandler that simply rethrows the exception.
|
| Modifier and Type | Method and Description |
|---|---|
void |
handleTemplateException(TemplateException te,
Environment env,
java.io.Writer out)
handle the exception.
|
static final TemplateExceptionHandler IGNORE_HANDLER
static final TemplateExceptionHandler RETHROW_HANDLER
static final TemplateExceptionHandler DEBUG_HANDLER
static final TemplateExceptionHandler HTML_DEBUG_HANDLER
void handleTemplateException(TemplateException te, Environment env, java.io.Writer out) throws TemplateException
te - the exception that occurred.env - The environment object that represents the rendering contextout - the character output stream to output to.TemplateException