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:
Serializable
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:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.temporal.client.ActivityCompletionException
getActivityId, getActivityType, getRunId, getWorkflowIdMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ActivityCanceledException
-
ActivityCanceledException
-
ActivityCanceledException
public ActivityCanceledException()
-