Skip to content

Rulvar API reference


Rulvar API reference / @rulvar/rulvar / SupersededError

Class: SupersededError

Defined in: packages/core/dist/index.d.ts

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

ts
new SupersededError(message, opts): SupersededError;

Defined in: packages/core/dist/index.d.ts

Parameters

ParameterType
messagestring
opts{ cause?: unknown; runId: string; runStatus: string; }
opts.cause?unknown
opts.runIdstring
opts.runStatusstring

Returns

SupersededError

Overrides

RulvarError.constructor

Properties

PropertyModifierTypeDefault valueDescriptionOverridesInherited fromDefined in
codereadonly"superseded""superseded"-RulvarError.code-packages/core/dist/index.d.ts
data?readonlyJsonundefined--RulvarError.datapackages/core/dist/index.d.ts
retryablereadonlybooleanundefined--RulvarError.retryablepackages/core/dist/index.d.ts
runIdreadonlystringundefined---packages/core/dist/index.d.ts
runStatusreadonlystringundefinedThe outcome status the stale segment computed and must not act on.--packages/core/dist/index.d.ts

Methods

toWire()

ts
toWire(): WireError;

Defined in: packages/core/dist/index.d.ts

Returns

WireError

Inherited from

RulvarError.toWire