Class ContinueAsNewInterruption

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.dapr.durabletask.interruption.ContinueAsNewInterruption
All Implemented Interfaces:
Serializable

public class ContinueAsNewInterruption extends RuntimeException
Control flow Throwable class for orchestrator when invoke TaskOrchestrationContext.continueAsNew(java.lang.Object). This Throwable must never be caught by user code.

ContinueAsNewInterruption is thrown when an orchestrator calls TaskOrchestrationContext.continueAsNew(java.lang.Object). Catching ContinueAsNewInterruption in user code could prevent the orchestration from saving state and scheduling new tasks, resulting in the orchestration getting stuck.

See Also:
  • Constructor Details

    • ContinueAsNewInterruption

      public ContinueAsNewInterruption(String message)