Skip to content

Rulvar API reference


Rulvar API reference / @rulvar/core / JournalIntegrityError

Class: JournalIntegrityError ​

Defined in: packages/core/src/l0/errors.ts:288

A journal append was lost before the settle (RV3201): a persist inside the serialized append queue rejected, and the queue swallowed the rejection to keep later appends flowing, so the journal is now missing an entry the run believes it wrote. The first such failure latches inside the Replayer: every flush() from that moment rethrows it, and the engine settle path converts a would-be ok (or suspended) outcome into an error terminal, because an ok settle over a lost deterministic record would replay differently than the run executed. The latch is permanent for the segment; a resume constructs a fresh Replayer against whatever the store actually holds.

Extends ​

Constructors ​

Constructor ​

ts
new JournalIntegrityError(message, opts?): JournalIntegrityError;

Defined in: packages/core/src/l0/errors.ts:291

Parameters ​

ParameterType
messagestring
opts?{ cause?: unknown; data?: Json; }
opts.cause?unknown
opts.data?Json

Returns ​

JournalIntegrityError

Overrides ​

RulvarError.constructor

Properties ​

PropertyModifierTypeOverridesInherited fromDefined in
codereadonly"journal_integrity"RulvarError.code-packages/core/src/l0/errors.ts:289
data?readonlyJson-RulvarError.datapackages/core/src/l0/errors.ts:64
retryablereadonlyboolean-RulvarError.retryablepackages/core/src/l0/errors.ts:63

Methods ​

toWire() ​

ts
toWire(): WireError;

Defined in: packages/core/src/l0/errors.ts:75

Returns ​

WireError

Inherited from ​

RulvarError.toWire