Skip to content

Rulvar API reference


Rulvar API reference / @rulvar/rulvar / JournalIntegrityError

Class: JournalIntegrityError

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

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/dist/index.d.ts

Parameters

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

Returns

JournalIntegrityError

Overrides

RulvarError.constructor

Properties

PropertyModifierTypeDefault valueOverridesInherited fromDefined in
codereadonly"journal_integrity""journal_integrity"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

Methods

toWire()

ts
toWire(): WireError;

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

Returns

WireError

Inherited from

RulvarError.toWire