Package io.temporal.failure
Class ActivityFailure
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- io.temporal.failure.TemporalException
-
- io.temporal.failure.TemporalFailure
-
- io.temporal.failure.ActivityFailure
-
- All Implemented Interfaces:
java.io.Serializable
public final class ActivityFailure extends TemporalFailure
Contains information about an activity failure. Always contains the original reason for the failure as its cause. For example if an activity timed out the cause isTimeoutFailure
.This exception is expected to be thrown only by the Temporal framework code.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ActivityFailure(java.lang.String message, long scheduledEventId, long startedEventId, java.lang.String activityType, java.lang.String activityId, io.temporal.api.enums.v1.RetryState retryState, java.lang.String identity, java.lang.Throwable cause)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getActivityId()
java.lang.String
getActivityType()
java.lang.String
getIdentity()
static java.lang.String
getMessage(java.lang.String originalMessage, long scheduledEventId, long startedEventId, java.lang.String activityType, java.lang.String activityId, io.temporal.api.enums.v1.RetryState retryState, java.lang.String identity)
io.temporal.api.enums.v1.RetryState
getRetryState()
long
getScheduledEventId()
long
getStartedEventId()
-
Methods inherited from class io.temporal.failure.TemporalFailure
getOriginalMessage, setDataConverter
-
-
-
-
Method Detail
-
getScheduledEventId
public long getScheduledEventId()
-
getStartedEventId
public long getStartedEventId()
-
getActivityType
public java.lang.String getActivityType()
-
getActivityId
public java.lang.String getActivityId()
-
getIdentity
public java.lang.String getIdentity()
-
getRetryState
public io.temporal.api.enums.v1.RetryState getRetryState()
-
getMessage
public static java.lang.String getMessage(java.lang.String originalMessage, long scheduledEventId, long startedEventId, java.lang.String activityType, java.lang.String activityId, io.temporal.api.enums.v1.RetryState retryState, java.lang.String identity)
-
-