Class JobInterruptedException

All Implemented Interfaces:
Serializable

public class JobInterruptedException extends JobExecutionException
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 Details

    • JobInterruptedException

      public JobInterruptedException(String msg)
      Constructor that sets the message for the exception.
      Parameters:
      msg - The message for the exception.
    • JobInterruptedException

      public JobInterruptedException(String msg, BatchStatus status)
      Constructor that sets the message for the exception.
      Parameters:
      msg - The message for the exception.
      status - The desired BatchStatus of the surrounding execution after interruption.
  • Method Details

    • getStatus

      public BatchStatus getStatus()
      The desired status of the surrounding execution after the interruption.
      Returns:
      the status of the interruption (default STOPPED)