Skip to main content

Class: DuplicateFieldKeyError

Defined in: model/errors.ts:494

code: 'duplicate-field-key' — two Field declarations share a key, including two declarations that both override the same core Field (#142). A declaration naming a core Field's key alone, or naming one alongside an illegal key, is IllegalCoreFieldOverrideError instead — this error is for an outright clash, the same key claimed twice.

Extends​

Constructors​

Constructor​

new DuplicateFieldKeyError(key): DuplicateFieldKeyError

Defined in: model/errors.ts:497

Parameters​

key​

string

Returns​

DuplicateFieldKeyError

Overrides​

FreeGanttError.constructor

Properties​

code​

readonly code: ThrownCode

Defined in: model/errors.ts:104

Inherited from​

FreeGanttError.code


key​

readonly key: string

Defined in: model/errors.ts:495