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
new JournalIntegrityError(message, opts?): JournalIntegrityError;Defined in: packages/core/dist/index.d.ts
Parameters
| Parameter | Type |
|---|---|
message | string |
opts? | { cause?: unknown; data?: Json; } |
opts.cause? | unknown |
opts.data? | Json |
Returns
JournalIntegrityError
Overrides
Properties
| Property | Modifier | Type | Default value | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|---|
code | readonly | "journal_integrity" | "journal_integrity" | RulvarError.code | - | packages/core/dist/index.d.ts |
data? | readonly | Json | undefined | - | RulvarError.data | packages/core/dist/index.d.ts |
retryable | readonly | boolean | undefined | - | RulvarError.retryable | packages/core/dist/index.d.ts |
Methods
toWire()
toWire(): WireError;Defined in: packages/core/dist/index.d.ts