Package com.uber.cadence.client
Class WorkflowException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.uber.cadence.client.WorkflowException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
DuplicateWorkflowException
,WorkflowAlreadyCompletedException
,WorkflowFailureException
,WorkflowNotFoundException
,WorkflowQueryException
,WorkflowServiceException
,WorkflowTerminatedException
,WorkflowTimedOutException
public class WorkflowException extends java.lang.RuntimeException
Base exception for all workflow failures returned by an external client. Note that inside a workflow implementation child workflows throw subclasses ofChildWorkflowException
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
WorkflowException(java.lang.String message, WorkflowExecution execution, java.util.Optional<java.lang.String> workflowType, java.lang.Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkflowExecution
getExecution()
java.util.Optional<java.lang.String>
getWorkflowType()
-
-
-
Constructor Detail
-
WorkflowException
protected WorkflowException(java.lang.String message, WorkflowExecution execution, java.util.Optional<java.lang.String> workflowType, java.lang.Throwable cause)
-
-
Method Detail
-
getExecution
public WorkflowExecution getExecution()
-
getWorkflowType
public java.util.Optional<java.lang.String> getWorkflowType()
-
-