Package org.springframework.batch.core
Class JobInterruptedException
- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- org.springframework.batch.core.JobExecutionException
- org.springframework.batch.core.JobInterruptedException
- All Implemented Interfaces:
java.io.Serializable
public class JobInterruptedException extends JobExecutionException
Exception to indicate the the job has been interrupted. The exception state indicated is not normally recoverable by batch application clients, but internally it is useful to force a check. The exception will often be wrapped in a runtime exception (usuallyUnexpectedJobExecutionException
before reaching the client.- Author:
- Lucas Ward, Dave Syer
- See Also:
- Serialized Form
Constructor Summary
Constructors Constructor Description JobInterruptedException(java.lang.String msg)
JobInterruptedException(java.lang.String msg, BatchStatus status)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BatchStatus
getStatus()
The desired status of the surrounding execution after the interruption.
Constructor Detail
JobInterruptedException
public JobInterruptedException(java.lang.String msg)
JobInterruptedException
public JobInterruptedException(java.lang.String msg, BatchStatus status)
Method Detail
getStatus
public BatchStatus getStatus()
The desired status of the surrounding execution after the interruption.- Returns:
- the status of the interruption (default STOPPED)