Save This Page
Home » freemarker-2.3.13 » freemarker.template » [javadoc | source]
freemarker.template
public interface: TemplateExceptionHandler [javadoc | source] An API for objects that handle exceptions that are thrown during template rendering.
Field Summary
 TemplateExceptionHandler IGNORE_HANDLER    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. 
 TemplateExceptionHandler RETHROW_HANDLER    This is a TemplateExceptionHandler that simply rethrows the exception. Note that the exception is logged before being rethrown. 
 TemplateExceptionHandler DEBUG_HANDLER    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. 
 TemplateExceptionHandler HTML_DEBUG_HANDLER    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. 
Method from freemarker.template.TemplateExceptionHandler Summary:
handleTemplateException
Method from freemarker.template.TemplateExceptionHandler Detail:
 public  void handleTemplateException(TemplateException te,
    Environment env,
    Writer out) throws TemplateException
    handle the exception.