Skip to main content

Class: SiblingIndexOutOfRangeError

Defined in: model/errors.ts:458

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:464

Parameters​

entryId​

EntryId

siblingIndex​

number

lastIndex​

number

operation​

string

Returns​

SiblingIndexOutOfRangeError

Overrides​

FreeGanttError.constructor

Properties​

code​

readonly code: ThrownCode

Defined in: model/errors.ts:109

Inherited from​

FreeGanttError.code


entryId​

readonly entryId: EntryId

Defined in: model/errors.ts:459


lastIndex​

readonly lastIndex: number

Defined in: model/errors.ts:461


operation​

readonly operation: string

Defined in: model/errors.ts:462


siblingIndex​

readonly siblingIndex: number

Defined in: model/errors.ts:460