Package io.temporal.client
Class ActivityCompletionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- io.temporal.failure.TemporalException
-
- io.temporal.client.ActivityCompletionException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
ActivityCanceledException
,ActivityCompletionFailureException
,ActivityNotExistsException
,ActivityWorkerShutdownException
public class ActivityCompletionException extends TemporalException
Base exception for all failures returned by an activity completion client. Do not extend!- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ActivityCompletionException()
protected
ActivityCompletionException(ActivityInfo info)
protected
ActivityCompletionException(ActivityInfo info, java.lang.Throwable cause)
protected
ActivityCompletionException(java.lang.String activityId, java.lang.Throwable cause)
protected
ActivityCompletionException(java.lang.Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<java.lang.String>
getActivityId()
Optional as it might be not known to the exception source.java.util.Optional<java.lang.String>
getActivityType()
Optional as it might be not known to the exception source.java.util.Optional<java.lang.String>
getRunId()
Optional as it might be not known to the exception source.java.util.Optional<java.lang.String>
getWorkflowId()
Optional as it might be not known to the exception source.
-
-
-
Constructor Detail
-
ActivityCompletionException
protected ActivityCompletionException(ActivityInfo info)
-
ActivityCompletionException
protected ActivityCompletionException(ActivityInfo info, java.lang.Throwable cause)
-
ActivityCompletionException
protected ActivityCompletionException(java.lang.String activityId, java.lang.Throwable cause)
-
ActivityCompletionException
protected ActivityCompletionException(java.lang.Throwable cause)
-
ActivityCompletionException
protected ActivityCompletionException()
-
-
Method Detail
-
getWorkflowId
public java.util.Optional<java.lang.String> getWorkflowId()
Optional as it might be not known to the exception source.
-
getRunId
public java.util.Optional<java.lang.String> getRunId()
Optional as it might be not known to the exception source.
-
getActivityType
public java.util.Optional<java.lang.String> getActivityType()
Optional as it might be not known to the exception source.
-
getActivityId
public java.util.Optional<java.lang.String> getActivityId()
Optional as it might be not known to the exception source.
-
-