Class 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 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

      • 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)
    • Method Detail

      • getBackoff

        public java.time.Duration getBackoff()
      • getAttempt

        public int getAttempt()