Class ScheduleException

  • All Implemented Interfaces:
    java.io.Serializable

    public final class ScheduleException
    extends java.lang.IllegalArgumentException
    Exception thrown when a schedule cannot be calculated.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ScheduleException​(PeriodicSchedule definition, java.lang.String msgTemplate, java.lang.Object... msgArguments)
      Creates an instance, specifying the definition that caused the problem.
      ScheduleException​(java.lang.String msgTemplate, java.lang.Object... msgArguments)
      Creates an instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<PeriodicSchedule> getDefinition()
      Gets the invalid schedule definition.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ScheduleException

        public ScheduleException​(java.lang.String msgTemplate,
                                 java.lang.Object... msgArguments)
        Creates an instance.

        The message is formatted using Messages.format(String, Object...). Message formatting is null tolerant to avoid hiding this exception.

        Parameters:
        msgTemplate - the message template, null tolerant
        msgArguments - the message arguments, null tolerant
      • ScheduleException

        public ScheduleException​(PeriodicSchedule definition,
                                 java.lang.String msgTemplate,
                                 java.lang.Object... msgArguments)
        Creates an instance, specifying the definition that caused the problem.

        The message is formatted using Messages.format(String, Object...). Message formatting is null tolerant to avoid hiding this exception.

        Parameters:
        definition - the invalid schedule definition, null tolerant
        msgTemplate - the message template, null tolerant
        msgArguments - the message arguments, null tolerant
    • Method Detail

      • getDefinition

        public java.util.Optional<PeriodicSchedule> getDefinition()
        Gets the invalid schedule definition.
        Returns:
        the optional definition