ERROR - java.time.DateTimeException - Possible Causes of DateTimeException

ClassPackageMethod that throws exceptionCause
Instantjava.timepublic static Instant ofEpochSecond(long epochSecond)if the instant exceeds the maximum or minimum instant ofEpochSecond.
Periodjava.timepublic static Period from(TemporalAmount amount)if unable to convert to a Period.
Yearjava.timepublic static Year of(int isoYear)if the field is invalid.
ZoneIdjava.timepublic static ZoneId systemDefault()if the converted zone ID has an invalid format.
ZoneOffsetjava.timepublic static ZoneOffset of(String offsetId)if the offset ID is invalid.