Uses of Class
freemarker.core.TemplateValueFormatException
Packages that use TemplateValueFormatException
Package
Description
The seldom used or advanced parts of the fundamental FreeMarker API, compared to
freemarker.template
.-
Uses of TemplateValueFormatException in freemarker.core
Subclasses of TemplateValueFormatException in freemarker.coreModifier and TypeClassDescriptionfinal class
Used when creatingTemplateDateFormat
-s andTemplateNumberFormat
-s to indicate that the parameters part of the format string (like some kind of pattern) is malformed.class
Used when creatingTemplateDateFormat
-s andTemplateNumberFormat
-s to indicate that the format string (like the value of thedateFormat
setting) is malformed.class
Thrown when theTemplateValueFormat
doesn't support parsing, and parsing was invoked.class
class
Thrown when aTemplateModel
can't be formatted because of the value/properties of it are outside of that theTemplateValueFormat
supports.final class
Thrown when aTemplateDateModel
can't be formatted because its type isTemplateDateModel.UNKNOWN
.final class
Thrown when a string can't be parsed toTemplateDateModel
, because the provided target type isTemplateDateModel.UNKNOWN
.class
Thrown when the content of the string that should be parsed by theTemplateValueFormat
doesn't match what the format expects.Methods in freemarker.core that throw TemplateValueFormatExceptionModifier and TypeMethodDescriptionTemplateDateFormat.format
(TemplateDateModel dateModel) Formats the model to markup instead of to plain text if the result markup will be more than just plain text escaped, otherwise falls back to formatting to plain text.TemplateNumberFormat.format
(TemplateNumberModel numberModel) Formats the model to markup instead of to plain text if the result markup will be more than just plain text escaped, otherwise falls back to formatting to plain text.abstract String
TemplateDateFormat.formatToPlainText
(TemplateDateModel dateModel) abstract String
TemplateNumberFormat.formatToPlainText
(TemplateNumberModel numberModel) AliasTemplateDateFormatFactory.get
(String params, int dateType, Locale locale, TimeZone timeZone, boolean zonelessInput, Environment env) AliasTemplateNumberFormatFactory.get
(String params, Locale locale, Environment env) abstract TemplateDateFormat
TemplateDateFormatFactory.get
(String params, int dateType, Locale locale, TimeZone timeZone, boolean zonelessInput, Environment env) Returns a formatter for the given parameters.abstract TemplateNumberFormat
TemplateNumberFormatFactory.get
(String params, Locale locale, Environment env) Returns a formatter for the given parameters.Environment.getTemplateDateFormat
(int dateType, Class<? extends Date> dateClass) Gets aTemplateDateFormat
using the date/time/datetime format settings and the current locale and time zone.Environment.getTemplateDateFormat
(String formatString, int dateType, Class<? extends Date> dateClass) Gets aTemplateDateFormat
for the specified format string and the current locale and time zone.Environment.getTemplateDateFormat
(String formatString, int dateType, Class<? extends Date> dateClass, Locale locale) LikeEnvironment.getTemplateDateFormat(String, int, Class)
, but allows you to use a different locale than the current one.Environment.getTemplateDateFormat
(String formatString, int dateType, Class<? extends Date> dateClass, Locale locale, TimeZone timeZone, TimeZone sqlDateAndTimeTimeZone) LikeEnvironment.getTemplateDateFormat(String, int, Class)
, but allows you to use a different locale and time zone than the current one.Environment.getTemplateDateFormat
(String formatString, int dateType, Locale locale, TimeZone timeZone, boolean zonelessInput) Gets aTemplateDateFormat
for the specified parameters.Environment.getTemplateNumberFormat()
Returns the current number format (Configurable.getNumberFormat()
) asTemplateNumberFormat
.Environment.getTemplateNumberFormat
(String formatString) Returns the number format asTemplateNumberFormat
for the given format string and the current locale.Environment.getTemplateNumberFormat
(String formatString, Locale locale) Returns the number format asTemplateNumberFormat
, for the given format string and locale.abstract Object
Parsers a string to date/time/datetime, according to this format.final Object
This method is reserved for future purposes; currently it always throwsParsingNotSupportedException
.