Skip to content

Latest commit

 

History

History
218 lines (111 loc) · 3.83 KB

ItemNotFoundError.md

File metadata and controls

218 lines (111 loc) · 3.83 KB

elections-cpl.api.hscc.bdpa.orgDocs


elections-cpl.api.hscc.bdpa.org / src/error / ItemNotFoundError

Class: ItemNotFoundError<T>

Represents a failure to locate a specific item or resource, optionally represented by a string literal itemName or the item's constructor name.

Extends

Type parameters

T = unknown

Constructors

new ItemNotFoundError()

new ItemNotFoundError<T>(item?, itemName?): ItemNotFoundError<T>

Represents a failure to locate a specific item or resource, optionally represented by a string literal itemName or the item's constructor name.

Parameters

item?: T

itemName?: string

Returns

ItemNotFoundError<T>

Overrides

NotFoundError.constructor

Source

node_modules/named-app-errors/dist/modules/error/not-found/item-not-found.d.ts:13

new ItemNotFoundError()

new ItemNotFoundError<T>(item, itemName, message): ItemNotFoundError<T>

This constructor syntax is used by subclasses when calling this constructor via super.

Parameters

item: T

itemName: string

message: string

Returns

ItemNotFoundError<T>

Overrides

NotFoundError.constructor

Source

node_modules/named-app-errors/dist/modules/error/not-found/item-not-found.d.ts:18

Properties

cause?

optional cause: unknown

Inherited from

NotFoundError.cause

Source

node_modules/typescript/lib/lib.es2022.error.d.ts:24


item

readonly item: undefined | T

Source

node_modules/named-app-errors/dist/modules/error/not-found/item-not-found.d.ts:7


itemName

readonly itemName: undefined | string

Source

node_modules/named-app-errors/dist/modules/error/not-found/item-not-found.d.ts:8


message

message: string

Inherited from

NotFoundError.message

Source

node_modules/typescript/lib/lib.es5.d.ts:1077


name

name: string

Inherited from

NotFoundError.name

Source

node_modules/typescript/lib/lib.es5.d.ts:1076


stack?

optional stack: string

Inherited from

NotFoundError.stack

Source

node_modules/typescript/lib/lib.es5.d.ts:1078


prepareStackTrace()?

static optional prepareStackTrace: (err, stackTraces) => any

Optional override for formatting stack traces

See

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

Parameters

err: Error

stackTraces: CallSite[]

Returns

any

Inherited from

NotFoundError.prepareStackTrace

Source

node_modules/@types/node/globals.d.ts:28


stackTraceLimit

static stackTraceLimit: number

Inherited from

NotFoundError.stackTraceLimit

Source

node_modules/@types/node/globals.d.ts:30

Methods

captureStackTrace()

static captureStackTrace(targetObject, constructorOpt?): void

Create .stack property on a target object

Parameters

targetObject: object

constructorOpt?: Function

Returns

void

Inherited from

NotFoundError.captureStackTrace

Source

node_modules/@types/node/globals.d.ts:21