HookForceClaimedError
HookForceClaimedError is thrown when awaiting a hook whose token another workflow run took over with createHook({ experimental_force: true }). The hook is disposed and receives no further payloads; the error names the run that now owns the token. See the hook-force-claimed error guide for how to react.
API signature
Properties
| Name | Type | Description |
|---|---|---|
token | string | The hook token that was taken over. |
claimedByRunId | string | The run that took the token. |
claimedByHookId | string | The hook in that run the token now belongs to, when known. |
message | string | The error message. |
Static methods
HookForceClaimedError.is(value)
Type-safe check for HookForceClaimedError instances. Preferred over instanceof because it works across module boundaries and virtual machine contexts.