Uses of Class
freemarker.template.TemplateException
-
Packages that use TemplateException Package Description freemarker.core The seldom used or advanced parts of the fundamental FreeMarker API, compared tofreemarker.template.freemarker.ext.beans Thedefault object wrapperof FreeMarker uses this to expose Java Beans and POJO-s to templates, but it can also be used in itself as a better alternativeObjectWrapper.freemarker.ext.servlet Servlet for legacy "Model 2" frameworks that allows using FreeMarker templates instead of JSP as the MVC View (see in the Manual).freemarker.template The fundamental, most commonly used API-s of FreeMarker; start withConfiguration(see also the Getting Stared in the Manual.) -
-
Uses of TemplateException in freemarker.core
Subclasses of TemplateException in freemarker.core Modifier and Type Class Description classfreemarker.core._MiscTemplateExceptionstatic classConfigurable.SettingValueAssignmentExceptionThe setting name was recognized, but its value couldn't be parsed or the setting couldn't be set for some other reason.static classConfigurable.UnknownSettingExceptionThe setting name was not recognized.classInvalidReferenceExceptionA subclass ofTemplateExceptionthat says that an FTL expression has evaluated tonullor it refers to something that doesn't exist.classNonBooleanExceptionIndicates that aTemplateBooleanModelvalue was expected, but the value had a different type.classNonDateExceptionIndicates that aTemplateDateModelvalue was expected, but the value had a different type.classNonExtendedHashExceptionIndicates that aTemplateHashModelExvalue was expected, but the value had a different type.classNonHashExceptionIndicates that aTemplateHashModelvalue was expected, but the value had a different type.classNonMethodExceptionIndicates that aTemplateMethodModelvalue was expected, but the value had a different type.classNonNodeExceptionIndicates that aTemplateNodeModelvalue was expected, but the value had a different type.classNonNumericalExceptionIndicates that aTemplateNumberModelvalue was expected, but the value had a different type.classNonSequenceExceptionIndicates that aTemplateSequenceModelvalue was expected, but the value had a different type.classNonSequenceOrCollectionExceptionIndicates that aTemplateSequenceModelorTemplateCollectionModelvalue was expected, but the value had a different type.classNonStringExceptionIndicates that aTemplateScalarModelvalue was expected (or maybe something that can be automatically coerced to that), but the value had a different type.classStopExceptionThis exception is thrown when a #stop directive is encountered.classUnexpectedTypeExceptionThe type of a value differs from what was expected.Methods in freemarker.core that return TemplateException Modifier and Type Method Description protected TemplateExceptionConfigurable. invalidSettingValueException(String name, String value)protected TemplateExceptionConfigurable. settingValueAssignmentException(String name, String value, Throwable cause)protected TemplateExceptionConfigurable. unknownSettingException(String name)Creates the exception that should be thrown when a setting name isn't recognized.Methods in freemarker.core that throw TemplateException Modifier and Type Method Description voidEnvironment. __setitem__(String key, Object o)A hook that Jython uses.abstract NumberArithmeticEngine. add(Number first, Number second)NumberArithmeticEngine.ConservativeEngine. add(Number first, Number second)booleanEnvironment. applyEqualsOperator(TemplateModel leftValue, TemplateModel rightValue)Compares twoTemplateModel-s according the rules of the FTL "==" operator.booleanEnvironment. applyEqualsOperatorLenient(TemplateModel leftValue, TemplateModel rightValue)Compares twoTemplateModel-s according the rules of the FTL "==" operator, except that if the two types are incompatible, they are treated as non-equal instead of throwing an exception.booleanEnvironment. applyGreaterThanOperator(TemplateModel leftValue, TemplateModel rightValue)Compares twoTemplateModel-s according the rules of the FTL ">" operator.booleanEnvironment. applyLessThanOperator(TemplateModel leftValue, TemplateModel rightValue)Compares twoTemplateModel-s according the rules of the FTL "<" operator.booleanEnvironment. applyLessThanOrEqualsOperator(TemplateModel leftValue, TemplateModel rightValue)Compares twoTemplateModel-s according the rules of the FTL "<" operator.booleanEnvironment. applyWithGreaterThanOrEqualsOperator(TemplateModel leftValue, TemplateModel rightValue)Compares twoTemplateModel-s according the rules of the FTL ">=" operator.abstract intArithmeticEngine. compareNumbers(Number first, Number second)intArithmeticEngine.ConservativeEngine. compareNumbers(Number first, Number second)NumberArithmeticEngine.ConservativeEngine. divide(Number first, Number second)abstract NumberArithmeticEngine. divide(Number first, Number second)protected voidConfigurable. doAutoImportsAndIncludes(Environment env)Environment.NamespaceEnvironment. importLib(Template loadedTemplate, String namespace)Emulatesimportdirective.Environment.NamespaceEnvironment. importLib(String name, String namespace)Emulatesimportdirective, except thatnamemust be tempate root relative.voidEnvironment. include(Template includedTemplate)Processes a Template in the context of thisEnvironment, including its output in theEnvironment's Writer.voidEnvironment. include(String name, String encoding, boolean parse)Emulatesincludedirective, except thatnamemust be tempate root relative.NumberArithmeticEngine.ConservativeEngine. modulus(Number first, Number second)abstract NumberArithmeticEngine. modulus(Number first, Number second)NumberArithmeticEngine.ConservativeEngine. multiply(Number first, Number second)abstract NumberArithmeticEngine. multiply(Number first, Number second)voidEnvironment. process()Processes the template to which this environment belongs to.ClassOptInTemplateClassResolver. resolve(String className, Environment env, Template template)ClassTemplateClassResolver. resolve(String className, Environment env, Template template)Gets aClassbased on the class name.voidConfigurable. setSetting(String name, String value)Sets a FreeMarker setting by a name and string value.voidConfigurable. setSettings(InputStream propsIn)Reads a setting list (key and element pairs) from the input stream.voidConfigurable. setSettings(Properties props)Set the settings stored in aPropertiesobject.NumberArithmeticEngine.ConservativeEngine. subtract(Number first, Number second)abstract NumberArithmeticEngine. subtract(Number first, Number second)voidEnvironment. visit(freemarker.core.TemplateElement element, TemplateDirectiveModel directiveModel, Map args, List bodyParameterNames) -
Uses of TemplateException in freemarker.ext.beans
Subclasses of TemplateException in freemarker.ext.beans Modifier and Type Class Description classInvalidPropertyExceptionAn exception thrown when there is an attempt to access an invalid bean property when we are in a "strict bean" mode -
Uses of TemplateException in freemarker.ext.servlet
Methods in freemarker.ext.servlet that throw TemplateException Modifier and Type Method Description voidIncludePage. execute(Environment env, Map params, TemplateModel[] loopVars, TemplateDirectiveBody body) -
Uses of TemplateException in freemarker.template
Subclasses of TemplateException in freemarker.template Modifier and Type Class Description classTemplateModelExceptionTemplateModelmethods throw this exception if the requested data can't be retrieved.Methods in freemarker.template with parameters of type TemplateException Modifier and Type Method Description voidTemplateExceptionHandler. handleTemplateException(TemplateException te, Environment env, Writer out)Method called after aTemplateExceptionwas raised inside a template.Methods in freemarker.template that throw TemplateException Modifier and Type Method Description EnvironmentTemplate. createProcessingEnvironment(Object dataModel, Writer out)EnvironmentTemplate. createProcessingEnvironment(Object dataModel, Writer out, ObjectWrapper wrapper)Creates aEnvironmentobject, using this template, the data-model provided as parameter.protected voidConfiguration. doAutoImportsAndIncludes(Environment env)voidTemplateDirectiveModel. execute(Environment env, Map params, TemplateModel[] loopVars, TemplateDirectiveBody body)Executes this user-defined directive; called by FreeMarker when the user-defined directive is called in the template.voidTemplateExceptionHandler. handleTemplateException(TemplateException te, Environment env, Writer out)Method called after aTemplateExceptionwas raised inside a template.voidTemplate. process(Object dataModel, Writer out)Executes template, using the data-model provided, writing the generated output to the suppliedWriter.voidTemplate. process(Object dataModel, Writer out, ObjectWrapper wrapper)LikeTemplate.process(Object, Writer), but overrides theConfigurable.getObjectWrapper().voidTemplate. process(Object dataModel, Writer out, ObjectWrapper wrapper, TemplateNodeModel rootNode)LikeTemplate.process(Object, Writer), but also sets a (XML-)node to be recursively processed by the template.voidTemplateDirectiveBody. render(Writer out)Renders the body of the directive body to the specified writer.voidConfiguration. setSetting(String name, String value)
-