Home
last modified time | relevance | path

Searched refs:DateTimeParseException (Results 1 – 25 of 33) 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 …]
/libcore/ojluni/src/main/java/java/time/
DDuration.java82 import java.time.format.DateTimeParseException;
401 …throw (DateTimeParseException) new DateTimeParseException("Text cannot be parsed to a Duration: ov… in parse()
406 throw new DateTimeParseException("Text cannot be parsed to a Duration", text, 0); in parse()
418 …throw (DateTimeParseException) new DateTimeParseException("Text cannot be parsed to a Duration: " … in parseNumber()
431 …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;
DOffsetTime.java79 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;
/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/
DTCKMonthDay.java84 import java.time.format.DateTimeParseException;
321 @Test(dataProvider="badParseData", expectedExceptions=DateTimeParseException.class)
327 catch (DateTimeParseException ex) { in factory_parse_fail()
335 @Test(expectedExceptions=DateTimeParseException.class)
340 @Test(expectedExceptions=DateTimeParseException.class)
345 @Test(expectedExceptions=DateTimeParseException.class)
DTCKDuration.java86 import java.time.format.DateTimeParseException;
646 } catch (DateTimeParseException ex) { in factory_parse_minus()
718 @Test(dataProvider="parseFailure", expectedExceptions=DateTimeParseException.class)
723 @Test(dataProvider="parseFailure", expectedExceptions=DateTimeParseException.class)
729 @Test(expectedExceptions=DateTimeParseException.class)
734 @Test(expectedExceptions=DateTimeParseException.class)
739 @Test(expectedExceptions=DateTimeParseException.class)
744 @Test(expectedExceptions=DateTimeParseException.class)
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.java109 import java.time.format.DateTimeParseException;
510 @Test(dataProvider = "sampleBadParse", expectedExceptions={DateTimeParseException.class})
516 @Test(expectedExceptions=DateTimeParseException.class)
521 @Test(expectedExceptions=DateTimeParseException.class)
526 @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)

12