Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/workflow / errors
errors
Typed error surface for @graphorin/workflow. Every workflow-level failure lands as a subclass of WorkflowError carrying the stable string code discriminator so consumers can pattern-match without inspecting messages.
Classes
| Class | Description |
|---|---|
| CheckpointNotFoundError | Thrown when Workflow.fork cannot find the named checkpoint. |
| ConcurrentResumeError | Thrown when a second concurrent resume is attempted for the same thread. |
| InvalidChannelWriteError | Thrown when a node writes a key not declared in stateSchema. |
| InvalidWorkflowConfigError | Thrown by createWorkflow on configuration validation failure. |
| MultiWriteError | Thrown when more than one writer in a single execution step writes a LatestValue. |
| NodeExecutionError | Thrown when a node throws and the failure is propagated through the engine. |
| ReducerError | Thrown when a Reducer channel's reduce(...) callback throws. |
| ResumeWithoutSuspensionError | Thrown by Workflow.resume when the named thread is not in a suspended state. |
| ThreadNotFoundError | Thrown when Workflow.resume cannot find the named thread. |
| UnknownNodeError | Thrown by createWorkflow when an edge references a node that is not registered. |
| WorkflowAbortedError | Thrown when a workflow run is cancelled via AbortSignal. |
| WorkflowError | Base error class for all @graphorin/workflow failures. |
Type Aliases
| Type Alias | Description |
|---|---|
| WorkflowErrorCode | Stable code discriminator on every WorkflowError subclass. Treat as a string literal union for switch (err.code) style code. |