case HOURLY: if (scheduleParts.length < 1) { throw new CloudRuntimeException("Incorrect schedule format: " + schedule + " for interval type:" + type.toString()); case DAILY: if (scheduleParts.length < 2) { throw new CloudRuntimeException("Incorrect schedule format: " + schedule + " for interval type:" + type.toString()); case WEEKLY: if (scheduleParts.length < 3) { throw new CloudRuntimeException("Incorrect schedule format: " + schedule + " for interval type:" + type.toString()); case MONTHLY: if (scheduleParts.length < 3) { throw new CloudRuntimeException("Incorrect schedule format: " + schedule + " for interval type:" + type.toString()); throw new CloudRuntimeException("Incorrect interval: " + type.toString());
case HOURLY: if (scheduleParts.length < 1) { throw new CloudRuntimeException("Incorrect schedule format: " + schedule + " for interval type:" + type.toString()); case DAILY: if (scheduleParts.length < 2) { throw new CloudRuntimeException("Incorrect schedule format: " + schedule + " for interval type:" + type.toString()); case WEEKLY: if (scheduleParts.length < 3) { throw new CloudRuntimeException("Incorrect schedule format: " + schedule + " for interval type:" + type.toString()); case MONTHLY: if (scheduleParts.length < 3) { throw new CloudRuntimeException("Incorrect schedule format: " + schedule + " for interval type:" + type.toString()); throw new CloudRuntimeException("Incorrect interval: " + type.toString());