Save This Page
Home » freemarker-2.3.13 » freemarker.template » [javadoc | source]
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.
Constructor:
 public TemplateModelException() 
 public TemplateModelException(String description) 
    Constructs a TemplateModelException with the specified detail message.
    Parameters:
    description - the detail message.
 public TemplateModelException(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
 public TemplateModelException(String description,
    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 occurred
    cause - the underlying Exception that caused this exception to be raised
Methods from freemarker.template.TemplateException:
getCause,   getCauseException,   getEnvironment,   getFTLInstructionStack,   printStackTrace,   printStackTrace
Methods from java.lang.Throwable:
fillInStackTrace,   getCause,   getLocalizedMessage,   getMessage,   getStackTrace,   initCause,   printStackTrace,   printStackTrace,   printStackTrace,   setStackTrace,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait