Author: evenisse
Date: Mon Sep 26 09:26:45 2005
New Revision: 291663
URL: http://svn.apache.org/viewcvs?rev=291663&view=rev
Log:
[CONTINUUM-320] Catch exception when user define a bad cron expression.
Modified:
maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/scheduler/DefaultContinuumScheduler.java
Modified: maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/scheduler/DefaultContinuumScheduler.java
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/scheduler/DefaultContinuumScheduler.java?rev=291663&r1=291662&r2=291663&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/scheduler/DefaultContinuumScheduler.java
(original)
+++ maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/scheduler/DefaultContinuumScheduler.java
Mon Sep 26 09:26:45 2005
@@ -100,6 +100,10 @@
{
throw new ContinuumSchedulerException( "Error scheduling job.", e );
}
+ catch ( Exception e )
+ {
+ throw new ContinuumSchedulerException( "Error scheduling job (Verify your cron
expression).", e );
+ }
}
// ----------------------------------------------------------------------
|