Home
last modified time | relevance | path

Searched refs:DateTimeParseException (Results 1 – 25 of 29) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/time/format/
DDateTimeParseExceptionTest.java19 import java.time.format.DateTimeParseException;
31 DateTimeParseException ex = in test_constructor_message_parsedData_errorIndex()
32 new DateTimeParseException("message", new StringBuilder("parsedData"), 42); in test_constructor_message_parsedData_errorIndex()
42 DateTimeParseException ex = in test_constructor_message_parsedData_errorIndex_cause()
43 new DateTimeParseException("message", new StringBuilder("parsedData"), 42, cause); in test_constructor_message_parsedData_errorIndex_cause()
/libcore/ojluni/src/main/java/java/time/format/
DDateTimeParseException.java76 public class DateTimeParseException extends DateTimeException { class
99 public DateTimeParseException(String message, CharSequence parsedData, int errorIndex) { in DateTimeParseException() method in DateTimeParseException
113 …public DateTimeParseException(String message, CharSequence parsedData, int errorIndex, Throwable c… in DateTimeParseException() method in DateTimeParseException
DDateTimeFormatter.java1778 } catch (DateTimeParseException ex) { in parse()
1820 } catch (DateTimeParseException | IndexOutOfBoundsException ex) { in parse()
1852 } catch (DateTimeParseException ex) { in parse()
1906 } catch (DateTimeParseException ex) { in parseBest()
1913 private DateTimeParseException createError(CharSequence text, RuntimeException ex) { in createError()
1920 …return new DateTimeParseException("Text '" + abbr + "' could not be parsed: " + ex.getMessage(), t… in createError()
1948 … throw new DateTimeParseException("Text '" + abbr + "' could not be parsed at index " + in parseResolved0()
1951 …throw new DateTimeParseException("Text '" + abbr + "' could not be parsed, unparsed text found at … in parseResolved0()
2128 } catch (DateTimeParseException ex) { in parseObject()
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKDateTimeFormatter.java96 import java.time.format.DateTimeParseException;
513 @Test(expectedExceptions=DateTimeParseException.class)
520 } catch (DateTimeParseException ex) { in test_parse_CharSequence_ParsePosition_parseError()
559 @Test(expectedExceptions=DateTimeParseException.class)
563 } catch (DateTimeParseException ex) { in test_parse_Query_String_parseError()
572 @Test(expectedExceptions=DateTimeParseException.class)
576 } catch (DateTimeParseException ex) { in test_parse_Query_String_parseErrorLongText()
585 @Test(expectedExceptions=DateTimeParseException.class)
589 } catch (DateTimeParseException ex) { in test_parse_Query_String_parseIncomplete()
625 @Test(expectedExceptions=DateTimeParseException.class)
[all …]
DTCKDateTimeParseResolver.java114 import java.time.format.DateTimeParseException;
620 } catch (DateTimeParseException ex) { in test_resolveFourToTime()
646 } catch (DateTimeParseException ex) { in test_resolveThreeToTime()
713 } catch (DateTimeParseException ex) { in test_resolveSecondOfDay()
757 } catch (DateTimeParseException ex) { in test_resolveMinuteOfDay()
801 } catch (DateTimeParseException ex) { in test_resolveClockHourOfDay()
847 } catch (DateTimeParseException ex) { in test_resolveClockHourOfAmPm()
889 } catch (DateTimeParseException ex) { in test_resolveAmPm()
1007 @Test(expectedExceptions = DateTimeParseException.class)
1014 @Test(expectedExceptions = DateTimeParseException.class)
[all …]
DTCKDateTimeFormatters.java90 import java.time.format.DateTimeParseException;
1084 @Test(expectedExceptions=DateTimeParseException.class)
1089 } catch (DateTimeParseException ex) { in test_parse_basicIsoDate_largeYear()
/libcore/ojluni/src/main/java/java/time/
DDuration.java84 import java.time.format.DateTimeParseException;
403 …throw (DateTimeParseException) new DateTimeParseException("Text cannot be parsed to a Duration: ov… in parse()
408 throw new DateTimeParseException("Text cannot be parsed to a Duration", text, 0); in parse()
420 …throw (DateTimeParseException) new DateTimeParseException("Text cannot be parsed to a Duration: " … in parseNumber()
433 …throw (DateTimeParseException) new DateTimeParseException("Text cannot be parsed to a Duration: fr… in parseFraction()
DPeriod.java78 import java.time.format.DateTimeParseException;
340 … throw new DateTimeParseException("Text cannot be parsed to a Period", text, 0, ex); in parse()
344 throw new DateTimeParseException("Text cannot be parsed to a Period", text, 0); in parse()
355 throw new DateTimeParseException("Text cannot be parsed to a Period", text, 0, ex); in parseNumber()
DMonthDay.java77 import java.time.format.DateTimeParseException;
DYear.java83 import java.time.format.DateTimeParseException;
DYearMonth.java86 import java.time.format.DateTimeParseException;
DInstant.java82 import java.time.format.DateTimeParseException;
DOffsetDateTime.java79 import java.time.format.DateTimeParseException;
DLocalTime.java80 import java.time.format.DateTimeParseException;
DLocalDateTime.java83 import java.time.format.DateTimeParseException;
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/
DTCKIsoFields.java76 import java.time.format.DateTimeParseException;
208 @Test(dataProvider = "parseLenientQuarter", expectedExceptions = DateTimeParseException.class)
232 } catch (DateTimeParseException ex) { in test_parse_parseLenientQuarter_SMART()
400 @Test(dataProvider = "parseLenientWeek", expectedExceptions = DateTimeParseException.class)
424 } catch (DateTimeParseException ex) { in test_parse_parseLenientWeek_SMART()
/libcore/ojluni/src/test/java/time/test/java/time/format/
DTestNonIsoFormatter.java45 import java.time.format.DateTimeParseException;
178 @Test(dataProvider="invalid_text", expectedExceptions=DateTimeParseException.class)
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKPeriod.java72 import java.time.format.DateTimeParseException;
355 } catch (DateTimeParseException ex) { in factory_parse_minus()
420 @Test(dataProvider="parseFailure", expectedExceptions=DateTimeParseException.class)
424 } catch (DateTimeParseException ex) { in factory_parseFailures()
DTCKOffsetTime.java109 import java.time.format.DateTimeParseException;
423 @Test(dataProvider = "sampleBadParse", expectedExceptions={DateTimeParseException.class})
429 @Test(expectedExceptions={DateTimeParseException.class})
434 @Test(expectedExceptions={DateTimeParseException.class})
439 @Test(expectedExceptions={DateTimeParseException.class})
DTCKYearMonth.java96 import java.time.format.DateTimeParseException;
351 @Test(dataProvider="badParseData", expectedExceptions=DateTimeParseException.class)
356 } catch (DateTimeParseException ex) { in factory_parse_fail()
364 @Test(expectedExceptions=DateTimeParseException.class)
DTCKYear.java94 import java.time.format.DateTimeParseException;
292 @Test(dataProvider="badParseData", expectedExceptions=DateTimeParseException.class)
297 } catch (DateTimeParseException ex) { in factory_parse_fail()
DTCKLocalTime.java110 import java.time.format.DateTimeParseException;
544 @Test(dataProvider = "sampleBadParse", expectedExceptions={DateTimeParseException.class})
550 @Test(expectedExceptions=DateTimeParseException.class)
555 @Test(expectedExceptions=DateTimeParseException.class)
560 @Test(expectedExceptions=DateTimeParseException.class)
DTCKLocalDate.java108 import java.time.format.DateTimeParseException;
563 @Test(dataProvider="sampleBadParse", expectedExceptions={DateTimeParseException.class})
568 @Test(expectedExceptions=DateTimeParseException.class)
573 @Test(expectedExceptions=DateTimeParseException.class)
DTCKInstant.java92 import java.time.format.DateTimeParseException;
366 @Test(dataProvider="ParseFailures", expectedExceptions=DateTimeParseException.class)
371 @Test(dataProvider="ParseFailures", expectedExceptions=DateTimeParseException.class)
DTCKOffsetDateTime.java127 import java.time.format.DateTimeParseException;
439 @Test(expectedExceptions=DateTimeParseException.class)
444 @Test(expectedExceptions=DateTimeParseException.class)

12