Package io.temporal.worker
Class NonDeterministicException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.IllegalStateException
-
- io.temporal.worker.NonDeterministicException
-
- All Implemented Interfaces:
java.io.Serializable
public class NonDeterministicException extends java.lang.IllegalStateException
Thrown if history events from the server don't match commands issued by the execution or replay of workflow code.
This exception usually means that there is some form of non-determinism in workflow code that has lead to a difference in the execution path taken upon replay when compared to initial execution. That is to say the history the worker received for this workflow cannot be processed by the current workflow code. If this happens during the replay of a new Workflow Task, this exception will cause the Workflow Task to failWorkflowTaskFailedCause.WORKFLOW_TASK_FAILED_CAUSE_NON_DETERMINISTIC_ERROR
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NonDeterministicException(java.lang.String message)
NonDeterministicException(java.lang.String message, java.lang.Throwable cause)
-