Class TomlValueException

All Implemented Interfaces:
Serializable

public final class TomlValueException extends TomlException

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 Details

    • TomlValueException

      public TomlValueException(@NotNull @NotNull String message)
  • Method Details

    • checkDate

      public static void checkDate(@NotNull @NotNull TemporalAccessor date)