Package io.temporal.client
Class WorkflowException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- io.temporal.failure.TemporalException
-
- io.temporal.client.WorkflowException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
CancelExternalWorkflowException
,SignalExternalWorkflowException
,WorkflowExecutionAlreadyStarted
,WorkflowFailedException
,WorkflowNotFoundException
,WorkflowQueryException
,WorkflowServiceException
public abstract class WorkflowException extends TemporalException
Base exception for all workflow failures.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
WorkflowException(io.temporal.api.common.v1.WorkflowExecution execution, java.lang.String workflowType, java.lang.Throwable cause)
protected
WorkflowException(java.lang.String message, io.temporal.api.common.v1.WorkflowExecution execution, java.lang.String workflowType, java.lang.Throwable cause)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description io.temporal.api.common.v1.WorkflowExecution
getExecution()
static java.lang.String
getMessage(io.temporal.api.common.v1.WorkflowExecution execution, java.lang.String workflowType)
java.util.Optional<java.lang.String>
getWorkflowType()
-
-
-
Constructor Detail
-
WorkflowException
protected WorkflowException(@Nonnull io.temporal.api.common.v1.WorkflowExecution execution, java.lang.String workflowType, java.lang.Throwable cause)
-
WorkflowException
protected WorkflowException(java.lang.String message, io.temporal.api.common.v1.WorkflowExecution execution, java.lang.String workflowType, java.lang.Throwable cause)
-
-
Method Detail
-
getExecution
public io.temporal.api.common.v1.WorkflowExecution getExecution()
-
getWorkflowType
public java.util.Optional<java.lang.String> getWorkflowType()
-
getMessage
public static java.lang.String getMessage(io.temporal.api.common.v1.WorkflowExecution execution, java.lang.String workflowType)
-
-