| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
freemarker.template.TemplateException
freemarker.template.TemplateModelException
public class TemplateModelException
Template model classes should throw this exception if requested data cannot be retrieved. Its detail message will be used to build an error message in the output of a template using the model.
| Constructor Summary | |
|---|---|
| TemplateModelException()Constructs a TemplateModelExceptionwith no
 specified detail message or underlying cause. | |
| TemplateModelException(java.lang.Exception cause)Constructs a TemplateModelExceptionwith the given underlyingException, but no detail message. | |
| TemplateModelException(java.lang.String description)Constructs a TemplateModelExceptionwith the
 specified detail message, but no underlying cause Exception. | |
| TemplateModelException(java.lang.String description,
                       java.lang.Exception cause)Constructs a TemplateModelExceptionwith both a description
 of the error that occurred and the underlyingExceptionthat caused this exception to be raised. | |
| Method Summary | 
|---|
| Methods inherited from class freemarker.template.TemplateException | 
|---|
| getCause, getCauseException | 
| Methods inherited from class java.lang.Throwable | 
|---|
| fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public TemplateModelException()
TemplateModelException with no
 specified detail message or underlying cause.
public TemplateModelException(java.lang.String description)
TemplateModelException with the
 specified detail message, but no underlying cause Exception.
description - the detail message.public TemplateModelException(java.lang.Exception cause)
TemplateModelException with the given underlying
 Exception, but no detail message.
cause - the underlying Exception that caused this
 exception to be raised
public TemplateModelException(java.lang.String description,
                              java.lang.Exception cause)
TemplateModelException with both a description
 of the error that occurred and the underlying Exception
 that caused this exception to be raised.
description - the description of the error that occurredcause - the underlying Exception that caused this
 exception to be raised| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||