Skip to main content

Class: UnknownPresetError

Defined in: model/errors.ts:263

code: 'unknown-preset' — a PresetId string outside every table resolvePreset searched (S1.9; ladder search added #489). gantt.preset searches this Gantt's own zoomPresets before the shipped table (#489 owner ruling); gantt.zoomPresets and a shared TimeScaleModel's own preset have no ladder to search and stay shipped-only. ladderIds is empty for those two doors — the message then names only the shipped table, honestly reporting that no ladder search ran. operation names the actual door, the same reason InvalidPresetError takes it (C3/#482 review).

Extends​

Constructors​

Constructor​

new UnknownPresetError(presetId, ladderIds, shippedIds, operation): UnknownPresetError

Defined in: model/errors.ts:269

Parameters​

presetId​

string

ladderIds​

readonly string[]

shippedIds​

readonly string[]

operation​

string

Returns​

UnknownPresetError

Overrides​

FreeGanttError.constructor

Properties​

code​

readonly code: ThrownCode

Defined in: model/errors.ts:104

Inherited from​

FreeGanttError.code


ladderIds​

readonly ladderIds: readonly string[]

Defined in: model/errors.ts:265


operation​

readonly operation: string

Defined in: model/errors.ts:267


presetId​

readonly presetId: string

Defined in: model/errors.ts:264


shippedIds​

readonly shippedIds: readonly string[]

Defined in: model/errors.ts:266