Class: ItemNotFoundError
Defined in: packages/core/src/errors/ItemNotFoundError.ts:23
The canonical "an item searched for in a collection was not found" error.
Component-specific list-miss errors (e.g. a menu's MenuItemNotFoundError)
subclass this so callers can catch the family with one instanceof check.
Per ADR-010 it retains only a serializable locatorDescription string — never the live locator — keeping the frozen error contract decoupled from the locator model.
Param​
query
What was searched for — a PartLocator or a human-readable description such as an item label.
Param​
driver
Anything name-bearing (a driver satisfies { driverName }); only
its driverName is retained.
Param​
message
Optional override for the generated message, used by subclasses that phrase the miss in their own terms.
Extends​
Constructors​
Constructor​
new ItemNotFoundError(
query,driver,message?):ItemNotFoundError
Defined in: packages/core/src/errors/ItemNotFoundError.ts:26
Parameters​
query​
string | PartLocator
driver​
driverName​
string
message?​
string
Returns​
ItemNotFoundError
Overrides​
Properties​
cause?​
optionalcause?:unknown
Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es2022.error.d.ts:24
Inherited from​
driverName​
readonlydriverName:string
Defined in: packages/core/src/errors/ErrorBase.ts:13
Inherited from​
locatorDescription​
readonlylocatorDescription:string
Defined in: packages/core/src/errors/ItemNotFoundError.ts:24
message​
message:
string
Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1075
Inherited from​
name​
name:
string
Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1074
Inherited from​
stack?​
optionalstack?:string
Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1076
Inherited from​
Methods​
isError()​
staticisError(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