Class ActivityFailure

All Implemented Interfaces:
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 is TimeoutFailure.

This exception is expected to be thrown only by the Temporal framework code.

See Also:
  • Constructor Details

    • ActivityFailure

      public ActivityFailure(String message, long scheduledEventId, long startedEventId, String activityType, String activityId, io.temporal.api.enums.v1.RetryState retryState, String identity, Throwable cause)
  • Method Details

    • getScheduledEventId

      public long getScheduledEventId()
    • getStartedEventId

      public long getStartedEventId()
    • getActivityType

      public String getActivityType()
    • getActivityId

      public String getActivityId()
    • getIdentity

      public String getIdentity()
    • getRetryState

      public io.temporal.api.enums.v1.RetryState getRetryState()
    • getMessage

      public static String getMessage(String originalMessage, long scheduledEventId, long startedEventId, String activityType, String activityId, io.temporal.api.enums.v1.RetryState retryState, String identity)