Class 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 is TimeoutFailure.

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

    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ActivityFailure​(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​(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 java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ActivityFailure

        public ActivityFailure​(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 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​(long scheduledEventId,
                                                  long startedEventId,
                                                  java.lang.String activityType,
                                                  java.lang.String activityId,
                                                  io.temporal.api.enums.v1.RetryState retryState,
                                                  java.lang.String identity)