Skip to main content

Class: SiblingIndexOutOfRangeError

Defined in: model/errors.ts:453

code: 'sibling-index-out-of-range' — an explicit siblingIndex write outside the legal range for its group: negative, not a whole number, or past lastIndex (the highest legal index once the write lands — the group's own count for an add, one less than it for an update). An explicit write from entries.update()/entries.add(), or from an extender edit, raises this error; the renumber pass that runs at commit never does.

Extends​

Constructors​

Constructor​

new SiblingIndexOutOfRangeError(entryId, siblingIndex, lastIndex, operation): SiblingIndexOutOfRangeError

Defined in: model/errors.ts:459

Parameters​

entryId​

EntryId

siblingIndex​

number

lastIndex​

number

operation​

string

Returns​

SiblingIndexOutOfRangeError

Overrides​

FreeGanttError.constructor

Properties​

code​

readonly code: ThrownCode

Defined in: model/errors.ts:104

Inherited from​

FreeGanttError.code


entryId​

readonly entryId: EntryId

Defined in: model/errors.ts:454


lastIndex​

readonly lastIndex: number

Defined in: model/errors.ts:456


operation​

readonly operation: string

Defined in: model/errors.ts:457


siblingIndex​

readonly siblingIndex: number

Defined in: model/errors.ts:455