public class TaskletFailureException
extends java.lang.RuntimeException
Thrown by a Tasklet during processing when there is an internal error in the Tasklet. This is considered a "failure" in the Tasklet when it occurs. This will stop the job from processing any additional Tasklets, if the job is configured to "fail" if the Tasklet fails. If the jobs is not configured to stop on a Tasklet failure then it will continue to process other Tasklets within the chain.
Tasklet code can also throw this exception to end the Tasklet processing or end the job processing. Tasklet code can also catch this exception if the Tasklet code wants to perform special error handling.
Constructor and Description |
---|
TaskletFailureException(java.lang.String msg) |
TaskletFailureException(java.lang.String msg,
java.lang.Throwable cause) |
Copyright © Grand Logic, Inc. All Rights Reserved.