Class | Package | Method Throwing Exception | Cause |
| | |
Duration | java.time | public static Duration parse(CharSequence text) | DateTimeParseException - if the text cannot be parsed to a duration. |
Instant | java.time | public static Instant parse(CharSequence text) | DateTimeParseException - if the text cannot be parsed. |
LocalDate | java.time | public static LocalDate parse(CharSequence text) | DateTimeParseException - if the text cannot be parsed. |
LocalDateTime | java.time | public static LocalDateTime parse(CharSequence text) | DateTimeParseException - if the text cannot be parsed. |
LocalTime | java.time | public static LocalTime parse(CharSequence text) | DateTimeParseException - if the text cannot be parsed. |
MonthDay | java.time | public static MonthDay parse(CharSequence text) | DateTimeParseException - if the text cannot be parsed. |
OffsetDateTime | java.time | public static OffsetDateTime parse(CharSequence text) | DateTimeParseException - if the text cannot be parsed. |
OffsetTime | java.time | public static OffsetTime parse(CharSequence text) | DateTimeParseException - if the text cannot be parsed. |
Period | java.time | public static Period parse(CharSequence text) | DateTimeParseException - if the text cannot be parsed to a period. |
Year | java.time | public static Year parse(CharSequence text) | DateTimeParseException - if the text cannot be parsed. |
YearMonth | java.time | public static YearMonth parse(CharSequence text) | DateTimeParseException - if the text cannot be parsed. |
ZonedDateTime | java.time | public static ZonedDateTime parse(CharSequence text) | DateTimeParseException - if the text cannot be parsed. |