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:
- Serializable
Exception to indicate the job has been interrupted. The exception state indicated is
 not normally recoverable by batch application clients, but it is used internally to
 force a check. The exception is often wrapped in a runtime exception (usually
 
UnexpectedJobExecutionException) before reaching the client.- Author:
- Lucas Ward, Dave Syer, Mahmoud Ben Hassine
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionConstructor that sets the message for the exception.JobInterruptedException(String msg, BatchStatus status) Constructor that sets the message for the exception.
- 
Method SummaryModifier and TypeMethodDescriptionThe desired status of the surrounding execution after the interruption.Methods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
JobInterruptedExceptionConstructor that sets the message for the exception.- Parameters:
- msg- The message for the exception.
 
- 
JobInterruptedExceptionConstructor that sets the message for the exception.- Parameters:
- msg- The message for the exception.
- status- The desired- BatchStatusof the surrounding execution after interruption.
 
 
- 
- 
Method Details- 
getStatusThe desired status of the surrounding execution after the interruption.- Returns:
- the status of the interruption (default STOPPED)
 
 
-