## Uses of Class
freemarker.core.TemplateValueFormatException

Packages that use TemplateValueFormatException
freemarker.core: 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.core
`class` `InvalidFormatParametersException` Used when creating `TemplateDateFormat`-s and `TemplateNumberFormat`-s to indicate that the parameters part of the format string (like some kind of pattern) is malformed.
`class` `InvalidFormatStringException` Used when creating `TemplateDateFormat`-s and `TemplateNumberFormat`-s to indicate that the format string (like the value of the `dateFormat` setting) is malformed.
`class` `ParsingNotSupportedException` Thrown when the `TemplateValueFormat` doesn't support parsing, and parsing was invoked.
`class` `UndefinedCustomFormatException`
`class` `UnformattableValueException` Thrown when a `TemplateModel` can't be formatted because of the value/properties of it are outside of that the `TemplateValueFormat` supports.
`class` `UnknownDateTypeFormattingUnsupportedException` Thrown when a `TemplateDateModel` can't be formatted because its type is `TemplateDateModel.UNKNOWN`.
`class` `UnknownDateTypeParsingUnsupportedException` Thrown when a string can't be parsed to `TemplateDateModel`, because the provided target type is `TemplateDateModel.UNKNOWN`.
`class` `UnparsableValueException` Thrown when the content of the string that should be parsed by the `TemplateValueFormat` doesn't match what the format expects.

Methods in freemarker.core that throw TemplateValueFormatException
`Object` TemplateDateFormat.`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.
`Object` 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)`
`abstract TemplateDateFormat` TemplateDateFormatFactory.`get(String params, int dateType, Locale locale, TimeZone timeZone, boolean zonelessInput, Environment env)` Returns a formatter for the given parameters.
`TemplateDateFormat` AliasTemplateDateFormatFactory.`get(String params, int dateType, Locale locale, TimeZone timeZone, boolean zonelessInput, Environment env)`
`abstract TemplateNumberFormat` TemplateNumberFormatFactory.`get(String params, Locale locale, Environment env)` Returns a formatter for the given parameters.
`TemplateNumberFormat` AliasTemplateNumberFormatFactory.`get(String params, Locale locale, Environment env)`
`TemplateDateFormat` Environment.`getTemplateDateFormat(int dateType, Class<? extends Date> dateClass)` Gets a `TemplateDateFormat` using the date/time/datetime format settings and the current locale and time zone.
`TemplateDateFormat` Environment.`getTemplateDateFormat(String formatString, int dateType, Class<? extends Date> dateClass)` Gets a `TemplateDateFormat` for the specified format string and the current locale and time zone.
`TemplateDateFormat` Environment.`getTemplateDateFormat(String formatString, int dateType, Class<? extends Date> dateClass, Locale locale)` Like `Environment.getTemplateDateFormat(String, int, Class)`, but allows you to use a different locale than the current one.
`TemplateDateFormat` Environment.`getTemplateDateFormat(String formatString, int dateType, Class<? extends Date> dateClass, Locale locale, TimeZone timeZone, TimeZone sqlDateAndTimeTimeZone)` Like `Environment.getTemplateDateFormat(String, int, Class)`, but allows you to use a different locale and time zone than the current one.
`TemplateDateFormat` Environment.`getTemplateDateFormat(String formatString, int dateType, Locale locale, TimeZone timeZone, boolean zonelessInput)` Gets a `TemplateDateFormat` for the specified parameters.
`TemplateNumberFormat` Environment.`getTemplateNumberFormat()` Returns the current number format (`Configurable.getNumberFormat()`) as `TemplateNumberFormat`.
`TemplateNumberFormat` Environment.`getTemplateNumberFormat(String formatString)` Returns the number format as `TemplateNumberFormat` for the given format string and the current locale.
`TemplateNumberFormat` Environment.`getTemplateNumberFormat(String formatString, Locale locale)` Returns the number format as `TemplateNumberFormat`, for the given format string and locale.
`Object` TemplateNumberFormat.`parse(String s)` This method is reserved for future purposes; currently it always throws `ParsingNotSupportedException`.
`abstract Object` TemplateDateFormat.`parse(String s, int dateType)` Parsers a string to date/time/datetime, according to this format.