Package com.uber.cadence.workflow
Class ActivityFailureException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.uber.cadence.workflow.WorkflowOperationException
-
- com.uber.cadence.workflow.ActivityException
-
- com.uber.cadence.workflow.ActivityFailureException
-
- All Implemented Interfaces:
java.io.Serializable
public final class ActivityFailureException extends ActivityException
Indicates that an activity implementation threw an unhandled exception. Contains the unhandled exception as a cause. Note that an unhandled exception stack trace might belong to a separate process or even program.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ActivityFailureException(long eventId, ActivityType activityType, java.lang.String activityId, java.lang.Throwable cause)
ActivityFailureException(long eventId, ActivityType activityType, java.lang.String activityId, java.lang.Throwable cause, int attempt, java.time.Duration backoff)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getAttempt()
java.time.Duration
getBackoff()
-
Methods inherited from class com.uber.cadence.workflow.ActivityException
getActivityId, getActivityType
-
Methods inherited from class com.uber.cadence.workflow.WorkflowOperationException
getEventId
-
-
-
-
Constructor Detail
-
ActivityFailureException
public ActivityFailureException(long eventId, ActivityType activityType, java.lang.String activityId, java.lang.Throwable cause)
-
ActivityFailureException
public ActivityFailureException(long eventId, ActivityType activityType, java.lang.String activityId, java.lang.Throwable cause, int attempt, java.time.Duration backoff)
-
-