Package org.mpi_sws.jmc.runtime
Class HaltTaskException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.mpi_sws.jmc.runtime.HaltTaskException
- All Implemented Interfaces:
Serializable
Exception thrown to halt execution of the current task. Used in the wrapped Thread and Future
interfaces when instrumenting.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionHaltTaskException(Long taskId) Constructs a new HaltTaskException object.HaltTaskException(Long taskId, String message) Constructs a new HaltTaskException object. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
HaltTaskException
Constructs a new HaltTaskException object.- Parameters:
taskId- the ID of the task that threw the exception
-
HaltTaskException
Constructs a new HaltTaskException object.- Parameters:
taskId- the ID of the task that threw the exceptionmessage- the message to be displayed
-
-
Method Details
-
getTaskId
Returns the ID of the task which should be halted.- Returns:
- the ID of the task which should be halted.
-