workflow/errors
Semantic error types thrown by the Workflow SDK and its storage backends.
API reference for the error classes exported from the workflow/errors package.
All errors extend WorkflowError, so you can catch any SDK error with a single instanceof check, or narrow to a specific class for fine-grained handling. Failures from workflow storage backends extend WorkflowWorldError.
Base Classes
WorkflowError
Base class for all workflow error types.
WorkflowWorldError
Base error for failures from workflow storage backends.
Registration Errors
WorkflowNotRegisteredError
Thrown when a workflow function is not registered in the current deployment.
StepNotRegisteredError
Thrown when a step function is not registered in the current deployment.
Run Errors
WorkflowRunNotFoundError
Thrown when operating on a workflow run that does not exist.
WorkflowRunFailedError
Thrown when awaiting the return value of a failed workflow run.
WorkflowRunCancelledError
Thrown when awaiting the return value of a cancelled workflow run.
WorkflowRunNotCompletedError
Thrown when requesting the result of a workflow run that has not completed yet.
WorkflowRuntimeError
Thrown when the workflow runtime encounters an execution error, such as serialization failures or timeouts.
RunExpiredError
Thrown when a workflow run has expired and can no longer be operated on.
RunNotSupportedError
Thrown when a workflow run requires a newer workflow spec version than the installed SDK supports.
Hook Errors
HookNotFoundError
Thrown when resuming a hook that does not exist.
HookConflictError
Thrown when creating a hook with a token that is already in use by another workflow run.