Package com.tnsai.cancellation
Class CancellationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.tnsai.cancellation.CancellationException
- All Implemented Interfaces:
Serializable
Thrown when code observing a
CancellationToken aborts because
the token was cancelled (issue #22).
Distinct from CancellationException
which is tied to the Future cancellation model — this one is
for cooperative agent-level cancellation that has no backing
Future.
- Since:
- 0.5.0 (issue #22)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCancellationException(String reason) CancellationException(String reason, Throwable cause) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CancellationException
-
CancellationException
-