Class HaltTaskException

All Implemented Interfaces:
Serializable

public class HaltTaskException extends RuntimeException
Exception thrown to halt execution of the current task. Used in the wrapped Thread and Future interfaces when instrumenting.
See Also:
  • Constructor Details

    • HaltTaskException

      public HaltTaskException(Long taskId)
      Constructs a new HaltTaskException object.
      Parameters:
      taskId - the ID of the task that threw the exception
    • HaltTaskException

      public HaltTaskException(Long taskId, String message)
      Constructs a new HaltTaskException object.
      Parameters:
      taskId - the ID of the task that threw the exception
      message - the message to be displayed
  • Method Details

    • getTaskId

      public Long getTaskId()
      Returns the ID of the task which should be halted.
      Returns:
      the ID of the task which should be halted.