Package freemarker.template
Class TemplateModelException
java.lang.Object
java.lang.Throwable
java.lang.Exception
freemarker.template.TemplateException
freemarker.template.TemplateModelException
- All Implemented Interfaces:
Serializable
Template model implementation classes should throw this exception if
requested data cannot be retrieved.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a TemplateModelException with no specified detail message.TemplateModelException(Exception cause) Constructs a TemplateModelException with the given underlying Exception, but no detail message.TemplateModelException(String description) Constructs a TemplateModelException with the specified detail message.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. -
Method Summary
Methods inherited from class freemarker.template.TemplateException
getCauseException, getEnvironment, getFTLInstructionStack, getFTLStack, printStackTrace, printStackTraceMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toString
-
Constructor Details
-
TemplateModelException
public TemplateModelException()Constructs a TemplateModelException with no specified detail message. -
TemplateModelException
Constructs a TemplateModelException with the specified detail message.- Parameters:
description- the detail message.
-
TemplateModelException
Constructs a TemplateModelException with the given underlying Exception, but no detail message.- Parameters:
cause- the underlyingExceptionthat caused this exception to be raised
-
TemplateModelException
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 underlyingExceptionthat caused this exception to be raised
-