Skip to main content

Class: TooManyMatchingElementError

Defined in: packages/core/src/errors/TooManyMatchingElementError.ts:7

Base class for errors that include a reference to the component driver where the error occurred. The any type for the driver's ScenePart parameter is intentional to allow subclasses to narrow the driver type (e.g., MissingPartError has driver: ComponentDriver).

Extends​

Constructors​

Constructor​

new TooManyMatchingElementError(query, driver): TooManyMatchingElementError

Defined in: packages/core/src/errors/TooManyMatchingElementError.ts:8

Parameters​

query​

PartLocator

driver​

ComponentDriver<any>

Returns​

TooManyMatchingElementError

Overrides​

ErrorBase.constructor

Properties​

cause?​

optional cause?: unknown

Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es2022.error.d.ts:24

Inherited from​

ErrorBase.cause


driver​

readonly driver: ComponentDriver<any>

Defined in: packages/core/src/errors/TooManyMatchingElementError.ts:10

Inherited from​

ErrorBase.driver


message​

message: string

Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1075

Inherited from​

ErrorBase.message


name​

name: string

Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1074

Inherited from​

ErrorBase.name


query​

readonly query: PartLocator

Defined in: packages/core/src/errors/TooManyMatchingElementError.ts:9


stack?​

optional stack?: string

Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1076

Inherited from​

ErrorBase.stack

Methods​

isError()​

static isError(error): error is Error

Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.esnext.error.d.ts:21

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

Parameters​

error​

unknown

Returns​

error is Error

Inherited from​

ErrorBase.isError