public final class TemplateNotFoundException
extends java.io.FileNotFoundException
Configuration.getTemplate(String)
(or similar) doesn't find a template.
This extends FileNotFoundException
for backward compatibility, but in fact has nothing to do with files, as
FreeMarker can load templates from many other sources.MalformedTemplateNameException
,
Configuration.getTemplate(String)
,
Serialized FormConstructor and Description |
---|
TemplateNotFoundException(java.lang.String templateName,
java.lang.Object customLookupCondition,
java.lang.String message) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getCustomLookupCondition()
The custom lookup condition with which the template was requested, or
null if there's no such condition. |
java.lang.String |
getTemplateName()
The name (path) of the template that wasn't found.
|
public TemplateNotFoundException(java.lang.String templateName, java.lang.Object customLookupCondition, java.lang.String message)
public java.lang.String getTemplateName()
public java.lang.Object getCustomLookupCondition()
null
if there's no such condition.
See the customLookupCondition
parameter of
Configuration.getTemplate(String, java.util.Locale, Object, String, boolean, boolean)
.