Package javax.time.calendar

Examples of javax.time.calendar.IllegalCalendarFieldValueException


     * @return a CopticDate object, never null
     * @throws IllegalCalendarFieldValueException if the year range is exceeded
     */
    private static CopticDate copticDateFromEopchDays(int epochDays) {
        if (epochDays < MIN_EPOCH_DAY || epochDays > MAX_EPOCH_DAY) {
            throw new IllegalCalendarFieldValueException(
                    "Date exceeds supported range for CopticDate", CopticChronology.yearRule());
        }
        int year = ((epochDays * 4) + 1463) / 1461;
        int startYearEpochDays = (year - 1) * 365 + (year / 4);
        int doy0 = epochDays - startYearEpochDays;
View Full Code Here


                CACHE.compareAndSet(dayOfMonth, null, temp);
                result = CACHE.get(dayOfMonth);
            }
            return result;
        } catch (IndexOutOfBoundsException ex) {
            throw new IllegalCalendarFieldValueException(rule(), ++dayOfMonth, 1, 31);
        }
    }
View Full Code Here

                CACHE.compareAndSet(hourOfDay, null, temp);
                result = CACHE.get(hourOfDay);
            }
            return result;
        } catch (IndexOutOfBoundsException ex) {
            throw new IllegalCalendarFieldValueException(
                rule(), hourOfDay, rule().getMinimumValue(), rule().getMaximumValue());
        }
    }
View Full Code Here

                CACHE.compareAndSet(secondOfMinute, null, temp);
                result = CACHE.get(secondOfMinute);
            }
            return result;
        } catch (IndexOutOfBoundsException ex) {
            throw new IllegalCalendarFieldValueException(
                rule(), secondOfMinute, rule().getMinimumValue(), rule().getMaximumValue());
        }
    }
View Full Code Here

                CACHE.compareAndSet(minuteOfHour, null, temp);
                result = CACHE.get(minuteOfHour);
            }
            return result;
        } catch (IndexOutOfBoundsException ex) {
            throw new IllegalCalendarFieldValueException(
                rule(), minuteOfHour, rule().getMinimumValue(), rule().getMaximumValue());
        }
    }
View Full Code Here

                CACHE.compareAndSet(weekOfWeekyear, null, temp);
                result = CACHE.get(weekOfWeekyear);
            }
            return result;
        } catch (IndexOutOfBoundsException ex) {
            throw new IllegalCalendarFieldValueException(rule(), ++weekOfWeekyear, 1, 53);
        }
    }
View Full Code Here

                CACHE.compareAndSet(dayOfYear, null, temp);
                result = CACHE.get(dayOfYear);
            }
            return result;
        } catch (IndexOutOfBoundsException ex) {
            throw new IllegalCalendarFieldValueException(rule(), ++dayOfYear, 1, 366);
        }
    }
View Full Code Here

TOP

Related Classes of javax.time.calendar.IllegalCalendarFieldValueException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.