class ScheduleException extends IllegalArgumentException {

  public Optional<PeriodicSchedule> getDefinition() {
    return Optional.ofNullable(definition);
  }

  public  ScheduleException(String msgTemplate, Object... msgArguments);
  public  ScheduleException(PeriodicSchedule definition, String msgTemplate, Object... msgArguments);

}