freemarker.template
public class: TemplateModelException [javadoc |
source]
java.lang.Object
java.lang.Throwable
java.lang.Exception
freemarker.template.TemplateException
freemarker.template.TemplateModelException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
InvalidPropertyException
Template model implementation classes should throw this exception if
requested data cannot be retrieved.
- version:
$
- Id: TemplateModelException.java,v 1.14 2003/04/22 21:03:22 revusky Exp $
Constructor: |
public TemplateModelException() {
this(null, null);
}
Constructs a TemplateModelException with no
specified detail message. |
public TemplateModelException(String description) {
this(description, null);
}
Constructs a TemplateModelException with the
specified detail message. Parameters:
description - the detail message.
|
public TemplateModelException(Exception cause) {
this(null, cause);
}
Constructs a TemplateModelException with the given underlying
Exception, but no detail message. Parameters:
cause - the underlying Exception that caused this
exception to be raised
|
public TemplateModelException(String description,
Exception cause) {
super( description, cause, Environment.getCurrentEnvironment() );
}
Constructs a TemplateModelException with both a description of the error
that occurred and the underlying Exception that caused this exception
to be raised. Parameters:
description - the description of the error that occurred
cause - the underlying Exception that caused this
exception to be raised
|
Methods from java.lang.Throwable: |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |