Skip to content

rune-langium / core/src / DuplicateKeyError

Class: DuplicateKeyError ​

Defined in: packages/core/src/generated/domain.ts:2834

Extends ​

  • Error

Constructors ​

Constructor ​

ts
new DuplicateKeyError(key): DuplicateKeyError;

Defined in: packages/core/src/generated/domain.ts:2835

Parameters ​

ParameterType
keystring

Returns ​

DuplicateKeyError

Overrides ​

Error.constructor

Properties ​

PropertyModifierTypeInherited fromDefined in
cause?publicunknownError.causenode_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2022.error.d.ts:24
keypublic readonlystring-packages/core/src/generated/domain.ts:2835
messagepublicstringError.messagenode_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1075
namepublicstringError.namenode_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1074
stack?publicstringError.stacknode_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1076

Methods ​

isError() ​

ts
static isError(error): error is Error;

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.esnext.error.d.ts:21

Indicates whether the argument provided is a built-in Error instance or not.

Parameters ​

ParameterType
errorunknown

Returns ​

error is Error

Inherited from ​

Error.isError

Core packages released under MIT. Studio app released under FSL-1.1-ALv2.