freemarker.template
Class TemplateModelException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--freemarker.template.TemplateException
|
+--freemarker.template.TemplateModelException
- All Implemented Interfaces:
- java.io.Serializable
- public class TemplateModelException
- extends TemplateException
Template model implementation classes should throw this exception if
requested data cannot be retrieved.
- Version:
- $Id: TemplateModelException.java,v 1.7 2002/04/17 11:03:41 revusky Exp $
- See Also:
- Serialized Form
Constructor Summary |
TemplateModelException()
Constructs a TemplateModelException with no
specified detail message. |
TemplateModelException(java.lang.Exception cause)
Constructs a TemplateModelException with the given underlying
Exception, but no detail message. |
TemplateModelException(java.lang.String description)
Constructs a TemplateModelException with the
specified detail message. |
TemplateModelException(java.lang.String description,
java.lang.Exception cause)
Constructs a TemplateModelException with both a description of the error
that occurred and the underlying Exception that caused this exception
to be raised. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TemplateModelException
public TemplateModelException()
- Constructs a TemplateModelException with no
specified detail message.
TemplateModelException
public TemplateModelException(java.lang.String description)
- Constructs a TemplateModelException with the
specified detail message.
- Parameters:
description
- the detail message.
TemplateModelException
public TemplateModelException(java.lang.Exception 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
TemplateModelException
public TemplateModelException(java.lang.String description,
java.lang.Exception cause)
- 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 occurredcause
- the underlying Exception
that caused this
exception to be raised