Home
last modified time | relevance | path

Searched refs:DateTimeException (Results 1 – 25 of 131) sorted by relevance

123456

/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKDateTimeFormatters.java78 import java.time.DateTimeException;
208 {2008, null, null, null, null, null, DateTimeException.class}, in provider_sample_isoLocalDate()
209 {null, 6, null, null, null, null, DateTimeException.class}, in provider_sample_isoLocalDate()
210 {null, null, 30, null, null, null, DateTimeException.class}, in provider_sample_isoLocalDate()
211 {null, null, null, "+01:00", null, null, DateTimeException.class}, in provider_sample_isoLocalDate()
212 {null, null, null, null, "Europe/Paris", null, DateTimeException.class}, in provider_sample_isoLocalDate()
213 {2008, 6, null, null, null, null, DateTimeException.class}, in provider_sample_isoLocalDate()
214 {null, 6, 30, null, null, null, DateTimeException.class}, in provider_sample_isoLocalDate()
266 @Test(expectedExceptions = DateTimeException.class)
284 @Test(expectedExceptions = DateTimeException.class)
[all …]
DTCKSignStyle.java59 import java.time.DateTimeException;
104 {LocalDate.of(-2001, 10, 2), SignStyle.NOT_NEGATIVE, DateTimeException.class, ""}, in data_signStyle()
110 {LocalDate.of(20001, 10, 2), SignStyle.ALWAYS, DateTimeException.class, ""}, in data_signStyle()
111 {LocalDate.of(20001, 10, 2), SignStyle.NORMAL, DateTimeException.class, ""}, in data_signStyle()
112 {LocalDate.of(20001, 10, 2), SignStyle.NEVER, DateTimeException.class, ""}, in data_signStyle()
113 {LocalDate.of(20001, 10, 2), SignStyle.EXCEEDS_PAD, DateTimeException.class, ""}, in data_signStyle()
114 {LocalDate.of(20001, 10, 2), SignStyle.NOT_NEGATIVE, DateTimeException.class, ""}, in data_signStyle()
/libcore/luni/src/test/java/libcore/java/time/
DDateTimeExceptionTest.java19 import java.time.DateTimeException;
32 DateTimeException ex = new DateTimeException("message"); in test_constructor_message()
41 DateTimeException ex = new DateTimeException("message", cause); in test_constructor_message_cause()
/libcore/ojluni/src/main/java/java/time/
DZoneOffset.java236 … throw new DateTimeException("Invalid ID for ZoneOffset, invalid format: " + offsetId); in of()
240 …throw new DateTimeException("Invalid ID for ZoneOffset, plus/minus not found when expected: " + of… in of()
259 …throw new DateTimeException("Invalid ID for ZoneOffset, colon not found when expected: " + offsetI… in parseNumber()
264 …throw new DateTimeException("Invalid ID for ZoneOffset, non numeric characters found: " + offsetId… in parseNumber()
342 throw new DateTimeException("Unable to obtain ZoneOffset from TemporalAccessor: " + in from()
359 throw new DateTimeException("Zone offset hours not in valid range: value " + hours + in validate()
364 …throw new DateTimeException("Zone offset minutes and seconds must be positive because hours is pos… in validate()
368 …throw new DateTimeException("Zone offset minutes and seconds must be negative because hours is neg… in validate()
371 throw new DateTimeException("Zone offset minutes and seconds must have the same sign"); in validate()
374 throw new DateTimeException("Zone offset minutes not in valid range: value " + in validate()
[all …]
DDateTimeException.java75 public class DateTimeException extends RuntimeException { class
88 public DateTimeException(String message) { in DateTimeException() method in DateTimeException
98 public DateTimeException(String message, Throwable cause) { in DateTimeException() method in DateTimeException
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKZoneOffset.java70 import java.time.DateTimeException;
182 } catch (DateTimeException ex) { in test_factory_string_invalid()
305 @Test(expectedExceptions=DateTimeException.class)
310 @Test(expectedExceptions=DateTimeException.class)
332 @Test(expectedExceptions=DateTimeException.class)
337 @Test(expectedExceptions=DateTimeException.class)
362 @Test(expectedExceptions=DateTimeException.class)
367 @Test(expectedExceptions=DateTimeException.class)
372 @Test(expectedExceptions=DateTimeException.class)
377 @Test(expectedExceptions=DateTimeException.class)
[all …]
DTCKLocalDateTime.java111 import java.time.DateTimeException;
355 @Test(expectedExceptions=DateTimeException.class)
368 @Test(expectedExceptions=DateTimeException.class)
384 @Test(expectedExceptions=DateTimeException.class)
394 @Test(expectedExceptions=DateTimeException.class)
399 @Test(expectedExceptions=DateTimeException.class)
404 @Test(expectedExceptions=DateTimeException.class)
409 @Test(expectedExceptions=DateTimeException.class)
414 @Test(expectedExceptions=DateTimeException.class)
419 @Test(expectedExceptions=DateTimeException.class)
[all …]
DAbstractDateTimeTest.java65 import java.time.DateTimeException;
144 } catch (DateTimeException ex) { in basicTest_range_TemporalField_unsupported()
176 } catch (DateTimeException ex) { in basicTest_get_TemporalField_supported()
191 } catch (DateTimeException ex) { in basicTest_get_TemporalField_unsupported()
198 @Test(expectedExceptions=DateTimeException.class)
236 } catch (DateTimeException ex) { in basicTest_getLong_TemporalField_unsupported()
243 @Test(expectedExceptions=DateTimeException.class)
DTCKLocalDate.java90 import java.time.DateTimeException;
321 @Test(expectedExceptions=DateTimeException.class)
334 @Test(expectedExceptions=DateTimeException.class)
348 @Test(expectedExceptions=DateTimeException.class)
353 @Test(expectedExceptions=DateTimeException.class)
358 @Test(expectedExceptions=DateTimeException.class)
363 @Test(expectedExceptions=DateTimeException.class)
373 @Test(expectedExceptions=DateTimeException.class)
384 @Test(expectedExceptions=DateTimeException.class)
389 @Test(expectedExceptions=DateTimeException.class)
[all …]
DTCKYearMonth.java82 import java.time.DateTimeException;
232 @Test(expectedExceptions=DateTimeException.class)
237 @Test(expectedExceptions=DateTimeException.class)
254 @Test(expectedExceptions=DateTimeException.class)
259 @Test(expectedExceptions=DateTimeException.class)
264 @Test(expectedExceptions=DateTimeException.class)
269 @Test(expectedExceptions=DateTimeException.class)
280 @Test(expectedExceptions=DateTimeException.class)
586 @Test(expectedExceptions=DateTimeException.class)
592 @Test(expectedExceptions=DateTimeException.class)
[all …]
DTCKZoneId.java71 import java.time.DateTimeException;
178 @Test(expectedExceptions=DateTimeException.class)
430 @Test(dataProvider="offsetBasedInvalid", expectedExceptions=DateTimeException.class)
433 throw new DateTimeException("Fake exception: Z alone is valid, not invalid"); in factory_of_String_offsetBasedInvalid_noPrefix()
438 @Test(dataProvider="offsetBasedInvalid", expectedExceptions=DateTimeException.class)
443 @Test(dataProvider="offsetBasedInvalid", expectedExceptions=DateTimeException.class)
446 throw new DateTimeException("Fake exception: GMT0 is valid, not invalid"); in factory_of_String_offsetBasedInvalid_prefixGMT()
451 @Test(dataProvider="offsetBasedInvalid", expectedExceptions=DateTimeException.class)
454 … throw new DateTimeException("Fake exception: UT + C = UTC, thus it is valid, not invalid"); in factory_of_String_offsetBasedInvalid_prefixUT()
476 @Test(dataProvider="regionBasedInvalid", expectedExceptions=DateTimeException.class)
[all …]
DTCKYear.java81 import java.time.DateTimeException;
222 @Test(expectedExceptions=DateTimeException.class)
227 @Test(expectedExceptions=DateTimeException.class)
238 @Test(expectedExceptions=DateTimeException.class)
576 @Test(expectedExceptions=DateTimeException.class)
581 @Test(expectedExceptions=DateTimeException.class)
586 @Test(expectedExceptions=DateTimeException.class)
591 @Test(expectedExceptions=DateTimeException.class)
614 {Year.of(999999999), 1, ChronoUnit.YEARS, null, DateTimeException.class}, in data_plus_long_TemporalUnit()
615 {Year.of(-999999999), -1, ChronoUnit.YEARS, null, DateTimeException.class}, in data_plus_long_TemporalUnit()
[all …]
DTCKInstant.java83 import java.time.DateTimeException;
268 @Test(expectedExceptions=DateTimeException.class)
450 …ant.ofEpochSecond(10, 200), LocalDateTime.of(1970, 1, 1, 0, 0, 20), null, DateTimeException.class},
485 …ant.ofEpochSecond(10, 200), LocalDateTime.of(1970, 1, 1, 0, 0, 20), null, DateTimeException.class},
523 …nt.ofEpochSecond(10, 200), ChronoField.NANO_OF_SECOND, 1000000000L, null, DateTimeException.class},
524 …stant.ofEpochSecond(10, 200), ChronoField.MICRO_OF_SECOND, 1000000, null, DateTimeException.class},
525 …{Instant.ofEpochSecond(10, 200), ChronoField.MILLI_OF_SECOND, 1000, null, DateTimeException.class},
527 … {Instant.ofEpochSecond(10, 200), ChronoField.SECOND_OF_MINUTE, 1, null, DateTimeException.class},
528 … {Instant.ofEpochSecond(10, 200), ChronoField.SECOND_OF_DAY, 1, null, DateTimeException.class},
529 … {Instant.ofEpochSecond(10, 200), ChronoField.OFFSET_SECONDS, 1, null, DateTimeException.class},
[all …]
/libcore/ojluni/src/test/java/time/test/java/time/format/
DTestNumberPrinter.java67 import java.time.DateTimeException;
82 @Test(expectedExceptions=DateTimeException.class)
192 } catch (DateTimeException ex) { in test_pad_NOT_NEGATIVE()
209 } catch (DateTimeException ex) { in test_pad_NEVER()
225 } catch (DateTimeException ex) { in test_pad_NORMAL()
241 } catch (DateTimeException ex) {
261 } catch (DateTimeException ex) {
/libcore/ojluni/src/test/java/time/test/java/time/temporal/
DMockFieldNoValue.java65 import java.time.DateTimeException;
117 throw new DateTimeException("Mock"); in getFrom()
122 throw new DateTimeException("Mock"); in adjustInto()
/libcore/ojluni/src/main/java/java/time/zone/
DZoneRulesException.java59 import java.time.DateTimeException;
72 public class ZoneRulesException extends DateTimeException {
/libcore/ojluni/src/main/java/java/time/chrono/
DIsoEra.java64 import java.time.DateTimeException;
137 throw new DateTimeException("Invalid era: " + isoEra); in of()
DChronology.java69 import java.time.DateTimeException;
478 } catch (DateTimeException ex) { in localDateTime()
479 …throw new DateTimeException("Unable to obtain ChronoLocalDateTime from TemporalAccessor: " + tempo… in localDateTime()
514 } catch (DateTimeException ex1) { in zonedDateTime()
518 } catch (DateTimeException ex) { in zonedDateTime()
519 …throw new DateTimeException("Unable to obtain ChronoZonedDateTime from TemporalAccessor: " + tempo… in zonedDateTime()
DHijrahChronology.java75 import java.time.DateTimeException;
432 throw new DateTimeException("Invalid dayOfYear: " + dayOfYear); in dateYearDay()
525 throw new DateTimeException("invalid Hijrah era"); in eraOf()
573 throw new DateTimeException("Invalid Hijrah year: " + prolepticYear); in checkValidYear()
580 throw new DateTimeException("Invalid Hijrah day of year: " + dayOfYear); in checkValidDayOfYear()
586 throw new DateTimeException("Invalid Hijrah month: " + month); in checkValidMonth()
601 throw new DateTimeException("Hijrah date out of range"); in getHijrahDateInfo()
630 throw new DateTimeException("Invalid Hijrah date, year: " + in getEpochDay()
634 throw new DateTimeException("Invalid Hijrah day of month: " + dayOfMonth); in getEpochDay()
660 throw new DateTimeException("Invalid Hijrah date, year: " + in getMonthLength()
[all …]
DThaiBuddhistEra.java66 import java.time.DateTimeException;
144 throw new DateTimeException("Invalid era: " + thaiBuddhistEra); in of()
DMinguoEra.java66 import java.time.DateTimeException;
144 throw new DateTimeException("Invalid era: " + minguoEra); in of()
/libcore/ojluni/src/main/java/java/time/temporal/
DUnsupportedTemporalTypeException.java64 import java.time.DateTimeException;
75 public class UnsupportedTemporalTypeException extends DateTimeException {
/libcore/luni/src/test/java/libcore/java/time/chrono/
DThaiBuddhistDateTest.java26 import java.time.DateTimeException;
61 } catch (DateTimeException ignored) { in minus_javaTimePeriod_shouldThrowDateTimeException()
73 } catch (DateTimeException ignored) { in minus_javaTimeDuration_shouldThrowDateTimeException()
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DCopticEra.java60 import java.time.DateTimeException;
106 throw new DateTimeException("Invalid era: " + era); in of()
/libcore/ojluni/src/main/java/java/time/format/
DDateTimeParseException.java64 import java.time.DateTimeException;
76 public class DateTimeParseException extends DateTimeException {

123456