Package freemarker.core
Class UnformattableValueException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- freemarker.core.TemplateValueFormatException
-
- freemarker.core.UnformattableValueException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
UnknownDateTypeFormattingUnsupportedException,UnknownDateTypeParsingUnsupportedException
public class UnformattableValueException extends TemplateValueFormatException
Thrown when aTemplateModelcan't be formatted because of the value/properties of it are outside of that theTemplateValueFormatsupports. For example, a formatter may not support dates before year 1, or can't format NaN. The most often used subclass isUnknownDateTypeFormattingUnsupportedException.- Since:
- 2.3.24
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnformattableValueException(java.lang.String message)UnformattableValueException(java.lang.String message, java.lang.Throwable cause)
-