Class RareOrImpossibleDateException

All Implemented Interfaces:
Serializable

@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public class RareOrImpossibleDateException extends RuntimeException
This exception is thrown when trying to determine the previous or next occurrence of a given date determines that it's not happened, or going to happen, within some time period (e.g. within the next year).

This can typically have a few different reasons:

  • The date is impossible. For example, June 31 does never happen, so 0 0 31 6 * will never happen
  • The date happens only rarely
    • February 29 being the obvious one
    • Cron tab patterns specifying all of month, day of month, and day of week can also occur so rarely to trigger this exception
Since:
2.49
See Also:
  • Constructor Details

    • RareOrImpossibleDateException

      public RareOrImpossibleDateException()