| freemarker.template.TemplateExceptionHandler
TemplateExceptionHandler | public interface TemplateExceptionHandler (Code) | | An API for objects that handle exceptions that are thrown during
template rendering.
author: Jonathan Revusky |
DEBUG_HANDLER | TemplateExceptionHandler DEBUG_HANDLER(Code) | | This is a TemplateExceptionHandler used when you develop the templates. This handler
outputs the stack trace information to the client and then rethrows the exception.
|
HTML_DEBUG_HANDLER | TemplateExceptionHandler HTML_DEBUG_HANDLER(Code) | | This is a TemplateExceptionHandler used when you develop HTML templates. This handler
outputs the stack trace information to the client and then rethrows the exception, and
surrounds it with tags to make the error message readable with the browser.
|
IGNORE_HANDLER | TemplateExceptionHandler IGNORE_HANDLER(Code) | | This is a TemplateExceptionHandler which simply skips errors. It does nothing
to handle the event. Note that the exception is still logged in any case, before
being passed to the handler.
|
RETHROW_HANDLER | TemplateExceptionHandler RETHROW_HANDLER(Code) | | This is a TemplateExceptionHandler that simply rethrows the exception.
Note that the exception is logged before being rethrown.
|
handleTemplateException | void handleTemplateException(TemplateException te, Environment env, Writer out) throws TemplateException(Code) | | handle the exception.
Parameters: te - the exception that occurred. Parameters: env - The environment object that represents the rendering context Parameters: out - the character output stream to output to. |
|
|