Class CancellationException

All Implemented Interfaces:
Serializable

public class CancellationException extends RuntimeException
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 Details

    • CancellationException

      public CancellationException(String reason)
    • CancellationException

      public CancellationException(String reason, Throwable cause)