public static void validateCronSchedule ( final String cronSchedule ) { try { if ( StringUtils . hasText ( cronSchedule ) ) { getCronFromExpression ( cronSchedule ) ; } } catch ( final IllegalArgumentException e ) { throw new InvalidMaintenanceScheduleException ( e . getMessage ( ) , e ) ; } }
Validates the format of the maintenance window cron expression