Rulvar API reference / @rulvar/core / JournalCompatibilityError
Class: JournalCompatibilityError
Defined in: packages/core/src/l0/errors.ts:135
Refusal to open a journal whose hashVersion falls outside the engine's support window (producers ship in M2). The registry code is 'journal_compat'; the sub-codes live on subCode and in data.
Extends
Constructors
Constructor
ts
new JournalCompatibilityError(message, detail): JournalCompatibilityError;Defined in: packages/core/src/l0/errors.ts:146
Parameters
| Parameter | Type |
|---|---|
message | string |
detail | { entryHashVersion: number; entrySeq: number; hint: string; runId: string; subCode: JournalCompatSubCode; supportedRange: { max: number; min: number; }; } |
detail.entryHashVersion | number |
detail.entrySeq | number |
detail.hint | string |
detail.runId | string |
detail.subCode | JournalCompatSubCode |
detail.supportedRange | { max: number; min: number; } |
detail.supportedRange.max | number |
detail.supportedRange.min | number |
Returns
JournalCompatibilityError
Overrides
Properties
| Property | Modifier | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|---|
code | readonly | "journal_compat" | - | RulvarError.code | - | packages/core/src/l0/errors.ts:136 |
data? | readonly | Json | - | - | RulvarError.data | packages/core/src/l0/errors.ts:64 |
entryHashVersion | readonly | number | - | - | - | packages/core/src/l0/errors.ts:141 |
entrySeq | readonly | number | Seq of the first violating entry. | - | - | packages/core/src/l0/errors.ts:140 |
hint | readonly | string | 'enable deriverV1 from @rulvar/compat' or 'upgrade rulvar'. | - | - | packages/core/src/l0/errors.ts:144 |
retryable | readonly | boolean | - | - | RulvarError.retryable | packages/core/src/l0/errors.ts:63 |
runId | readonly | string | - | - | - | packages/core/src/l0/errors.ts:138 |
subCode | readonly | JournalCompatSubCode | - | - | - | packages/core/src/l0/errors.ts:137 |
supportedRange | readonly | { max: number; min: number; } | - | - | - | packages/core/src/l0/errors.ts:142 |
supportedRange.max | public | number | - | - | - | packages/core/src/l0/errors.ts:142 |
supportedRange.min | public | number | - | - | - | packages/core/src/l0/errors.ts:142 |
Methods
toWire()
ts
toWire(): WireError;Defined in: packages/core/src/l0/errors.ts:75