Class TomlValueException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.github.wasabithumb.jtoml.except.TomlException
io.github.wasabithumb.jtoml.except.TomlValueException
- All Implemented Interfaces:
Serializable
Thrown when attempting to convert a wider type into a narrower TOML primitive. This cannot be thrown for parsing; only for serialization/writing and through API usage.
This is currently only used for date-times, specifically when trying to
wrap a Java OffsetDateTime/LocalDateTime/
LocalDate which has a year less than
0 or greater than 9999.
- Since:
- 0.4.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
TomlValueException
-
-
Method Details
-
checkDate
-