Class ActivityCanceledException

  • All Implemented Interfaces:
    java.io.Serializable

    public final class ActivityCanceledException
    extends ActivityCompletionException
    Usually indicates that activity was already completed (duplicated request to complete) or timed out or cancellation was requested.

    Catching this exception directly is discouraged and catching the parent class ActivityCompletionException is recommended instead.
    If a workflow gets a cancellation request and it has activities started with TRY_CANCEL(default) or ABANDON cancellation type, the workflow may finish without waiting for activity cancellations and the activities will get ActivityNotExistsException from their heartbeat, not ActivityCanceledException. To handle the various edge cases, it's recommended to catch ActivityCompletionException and treat all the subclasses in the same way.

    See Also:
    Serialized Form
    • Constructor Detail

      • ActivityCanceledException

        public ActivityCanceledException​(ActivityInfo info)
      • ActivityCanceledException

        public ActivityCanceledException()