Package io.temporal.client
Class ActivityCanceledException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- io.temporal.failure.TemporalException
-
- io.temporal.client.ActivityCompletionException
-
- io.temporal.client.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 withTRY_CANCEL
(default) orABANDON
cancellation type, the workflow may finish without waiting for activity cancellations and the activities will getActivityNotExistsException
from their heartbeat, notActivityCanceledException
. To handle the various edge cases, it's recommended to catchActivityCompletionException
and treat all the subclasses in the same way.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ActivityCanceledException()
ActivityCanceledException(ActivityInfo info)
-
Method Summary
-
Methods inherited from class io.temporal.client.ActivityCompletionException
getActivityId, getActivityType, getRunId, getWorkflowId
-
-
-
-
Constructor Detail
-
ActivityCanceledException
public ActivityCanceledException(ActivityInfo info)
-
ActivityCanceledException
public ActivityCanceledException()
-
-