- Common ways to obtain IllegalFieldValueException
private void myMethod () {IllegalFieldValueException i =
String value;new IllegalFieldValueException(DateTimeFieldType.era(), value)
String value;new IllegalFieldValueException(DateTimeFieldType.monthOfYear(), value)
String value;new IllegalFieldValueException(DateTimeFieldType.halfdayOfDay(), value)
- Smart code suggestions by Codota
}
LOGGER.error("Failed to create DateTime object.", e); if ("dayOfMonth".equals(s)) { day = (day > e.getUpperBound().intValue()) ? e.getUpperBound().intValue() : e.getLowerBound() .intValue(); } else if ("monthOfYear".equals(s)) { month = (month > e.getUpperBound().intValue()) ? e.getUpperBound().intValue() : e .getLowerBound().intValue(); } else if ("hourOfDay".equals(s)) { hour = (hour > e.getUpperBound().intValue()) ? e.getUpperBound().intValue() : e .getLowerBound().intValue(); } else if ("minuteOfHour".equals(s)) { minutes = (minutes > e.getUpperBound().intValue()) ? e.getUpperBound().intValue() : e .getLowerBound().intValue();