Skip to main content

Class: PlaceRefusedError

Defined in: model/errors.ts:617

code: 'place-refused' — a place rule (ADR 0038) answered 'never' for a cross-parent move: an Entry carried into or out of a parent whose place rule refuses it. entries.update()'s parentId/siblingIndex and entries.add()'s parentId are the two doors that reach it; a gesture preview reads the same rule through canPlace and simply offers no drop, so it never throws.

A place rule names what a caller may write, never what the library may — construction, load, syncAll and History replay all still write past it, the same carve-out FieldNotEditableError keeps for a locked Field.

Extends​

Constructors​

Constructor​

new PlaceRefusedError(id, parentId, operation): PlaceRefusedError

Defined in: model/errors.ts:622

Parameters​

id​

EntryId

parentId​

EntryId | undefined

operation​

string

Returns​

PlaceRefusedError

Overrides​

FreeGanttError.constructor

Properties​

code​

readonly code: ThrownCode

Defined in: model/errors.ts:104

Inherited from​

FreeGanttError.code


id​

readonly id: EntryId

Defined in: model/errors.ts:618


operation​

readonly operation: string

Defined in: model/errors.ts:620


parentId​

readonly parentId: EntryId | undefined

Defined in: model/errors.ts:619