Class 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 (usually UnexpectedJobExecutionException before reaching the client.
    Author:
    Lucas Ward, Dave Syer
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      BatchStatusgetStatus()
      The desired status of the surrounding execution after the interruption.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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)