Class WorkflowFailedException

  • All Implemented Interfaces:
    java.io.Serializable

    public final class WorkflowFailedException
    extends WorkflowException
    Indicates that a workflow failed. An original cause of the workflow failure can be retrieved through Throwable.getCause().
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      WorkflowFailedException​(io.temporal.api.common.v1.WorkflowExecution workflowExecution, java.lang.String workflowType, long workflowTaskCompletedEventId, io.temporal.api.enums.v1.RetryState retryState, java.lang.Throwable cause)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getMessage​(io.temporal.api.common.v1.WorkflowExecution workflowExecution, java.lang.String workflowType, long workflowTaskCompletedEventId, io.temporal.api.enums.v1.RetryState retryState)  
      io.temporal.api.enums.v1.RetryState getRetryState()  
      long getWorkflowTaskCompletedEventId()  
      • 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

      • WorkflowFailedException

        public WorkflowFailedException​(io.temporal.api.common.v1.WorkflowExecution workflowExecution,
                                       java.lang.String workflowType,
                                       long workflowTaskCompletedEventId,
                                       io.temporal.api.enums.v1.RetryState retryState,
                                       java.lang.Throwable cause)
    • Method Detail

      • getRetryState

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

        public long getWorkflowTaskCompletedEventId()
      • getMessage

        public static java.lang.String getMessage​(io.temporal.api.common.v1.WorkflowExecution workflowExecution,
                                                  java.lang.String workflowType,
                                                  long workflowTaskCompletedEventId,
                                                  io.temporal.api.enums.v1.RetryState retryState)