Rulvar API reference / @rulvar/core / SupersededError
Class: SupersededError
Defined in: packages/core/src/l0/errors.ts:444
The segment computed its outcome but its run_settle append bounced off the store's fence (LeaseHeldError): a successor segment holds the lease and owns settlement (RV1009). Nothing durable records THIS segment's outcome, so handle.result rejects with this error instead of resolving, and the segment's run:end refuses green with settled: false and settledReason: 'superseded': a green terminal that exists in no durable store is exactly the split view RV907 forbids, and before this error a superseded segment resolved ok silently. Not retryable: the successor owns the run; read the authoritative outcome from its settle or the store's run meta. A meta-only lease bounce over an already durable settle is NOT this error and stays swallowed: the journal records the outcome, and only the projection belongs to the current holder. data records { runId, runStatus }.
Extends
Constructors
Constructor
new SupersededError(message, opts): SupersededError;Defined in: packages/core/src/l0/errors.ts:450
Parameters
| Parameter | Type |
|---|---|
message | string |
opts | { cause?: unknown; runId: string; runStatus: string; } |
opts.cause? | unknown |
opts.runId | string |
opts.runStatus | string |
Returns
SupersededError
Overrides
Properties
| Property | Modifier | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|---|
code | readonly | "superseded" | - | RulvarError.code | - | packages/core/src/l0/errors.ts:445 |
data? | readonly | Json | - | - | RulvarError.data | packages/core/src/l0/errors.ts:64 |
retryable | readonly | boolean | - | - | RulvarError.retryable | packages/core/src/l0/errors.ts:63 |
runId | readonly | string | - | - | - | packages/core/src/l0/errors.ts:446 |
runStatus | readonly | string | The outcome status the stale segment computed and must not act on. | - | - | packages/core/src/l0/errors.ts:448 |
Methods
toWire()
toWire(): WireError;Defined in: packages/core/src/l0/errors.ts:75