DateTimeException
DateTimeException is a runtime exception in the java.time package of Java. It serves as the common superclass for errors that occur during date and time computations, parsing, and formatting. DateTimeException is unchecked, extending RuntimeException, and is used by the date-time API to signal problems that are not due to programmer error in method arguments but to invalid date-time values or malformed input.
Constructors include DateTimeException(String message), DateTimeException(String message, Throwable cause), and DateTimeException(Throwable cause).
Common causes include creating impossible dates or times (such as February 30), overflow from arithmetic operations,
DateTimeException is the base class for several more specific exceptions in the java.time API; one notable