throw exception if cron pattern is empty