Class ScheduleException

    • Constructor Detail

      • ScheduleException

        public ScheduleException​(String msgTemplate,
                                 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,
                                 String msgTemplate,
                                 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 Optional<PeriodicSchedule> getDefinition()
        Gets the invalid schedule definition.
        Returns:
        the optional definition