freemarker.template
Class TemplateModelException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--freemarker.template.TemplateModelException

public class TemplateModelException
extends java.lang.Exception

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.

See Also:
Serialized Form

Constructor Summary
TemplateModelException()
          Constructs a TemplateModelException with no specified detail message.
TemplateModelException(java.lang.String s)
          Constructs a TemplateModelException with the specified detail message.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TemplateModelException

public TemplateModelException()
Constructs a TemplateModelException with no specified detail message.

TemplateModelException

public TemplateModelException(java.lang.String s)
Constructs a TemplateModelException with the specified detail message.
Parameters:
s - the detail message.