|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TemplateExceptionHandler
An API for objects that handle exceptions that are thrown during template rendering.
Field Summary | |
---|---|
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. |
Method Summary | |
---|---|
void |
handleTemplateException(TemplateException te,
Environment env,
java.io.Writer out)
handle the exception. |
Field Detail |
---|
static final TemplateExceptionHandler IGNORE_HANDLER
static final TemplateExceptionHandler RETHROW_HANDLER
static final TemplateExceptionHandler DEBUG_HANDLER
static final TemplateExceptionHandler HTML_DEBUG_HANDLER
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |