Skip to main content

Class: TagPickerOptionNotFoundError

Defined in: packages/component-driver-fluent-v9/src/errors/TagPickerOptionNotFoundError.ts:12

Thrown by TagPickerDriver.selectByLabel when no open-list option matches the given label, and by TagPickerDriver.removeSelected when no currently-selected tag matches it — the same "no matching item" shape reused across a composite driver's several lookups, mirroring MenuItemNotFoundError's reuse across Menu's plain/checkbox/radio items.

Extends​

  • ItemNotFoundError

Constructors​

Constructor​

new TagPickerOptionNotFoundError(label, driver): TagPickerOptionNotFoundError

Defined in: packages/component-driver-fluent-v9/src/errors/TagPickerOptionNotFoundError.ts:13

Parameters​

label​

string

driver​

ComponentDriver<any>

Returns​

TagPickerOptionNotFoundError

Overrides​

ItemNotFoundError.constructor

Properties​

label​

readonly label: string

Defined in: packages/component-driver-fluent-v9/src/errors/TagPickerOptionNotFoundError.ts:14

Inherited members (7)

Properties​

cause?​

optional cause?: unknown

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

Inherited from​

ItemNotFoundError.cause


driverName​

readonly driverName: string

Defined in: packages/core/dist/index.d.mts:1916

Inherited from​

ItemNotFoundError.driverName


locatorDescription​

readonly locatorDescription: string

Defined in: packages/core/dist/index.d.mts:1941

Inherited from​

ItemNotFoundError.locatorDescription


message​

message: string

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

Inherited from​

ItemNotFoundError.message


name​

name: string

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

Inherited from​

ItemNotFoundError.name


stack?​

optional stack?: string

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

Inherited from​

ItemNotFoundError.stack

Methods​

isError()​

static isError(error): error is Error

Defined in: docs/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​

ItemNotFoundError.isError