RESOLVED - BATCH-435 Tasklet step now propagates JobInterruptedException up to job

This commit is contained in:
robokaso
2008-03-10 09:38:43 +00:00
parent 383a9587be
commit 21325042ef
2 changed files with 24 additions and 0 deletions

View File

@@ -163,6 +163,9 @@ public class TaskletStep extends AbstractStep implements Step, InitializingBean,
catch (Exception ex) {
logger.error("Encountered an error on listener close.", ex);
}
if (e instanceof JobInterruptedException) {
throw (JobInterruptedException) e;
}
if (e instanceof RuntimeException) {
throw (RuntimeException) e;
}