Class | Package | Method that throws exception | Cause |
| | |
Instant | java.time | public static Instant ofEpochSecond(long epochSecond) | if the instant exceeds the maximum or minimum instant ofEpochSecond. |
Period | java.time | public static Period from(TemporalAmount amount) | if unable to convert to a Period. |
Year | java.time | public static Year of(int isoYear) | if the field is invalid. |
ZoneId | java.time | public static ZoneId systemDefault() | if the converted zone ID has an invalid format. |
ZoneOffset | java.time | public static ZoneOffset of(String offsetId) | if the offset ID is invalid. |