Type guard that returns true if an error is a Durable engine
control-flow signal rather than a genuine application error.
Durable uses thrown errors internally to suspend workflow execution
for durable operations like sleepFor, waitFor, proxyActivities,
and execChild. These errors must be re-thrown (not swallowed) so
the engine can persist state and schedule the next step.
Always use didInterrupt in catch blocks inside workflow
functions to avoid accidentally swallowing engine signals.
Type guard that returns
trueif an error is a Durable engine control-flow signal rather than a genuine application error.Durable uses thrown errors internally to suspend workflow execution for durable operations like
sleepFor,waitFor,proxyActivities, andexecChild. These errors must be re-thrown (not swallowed) so the engine can persist state and schedule the next step.Always use
didInterruptincatchblocks inside workflow functions to avoid accidentally swallowing engine signals.Recognized Error Types
DurableChildError,DurableFatalError,DurableMaxedError,DurableProxyError,DurableRetryError,DurableSleepError,DurableTimeoutError,DurableWaitForError,DurableWaitForAllErrorExamples