Skip to content

Latest commit

 

History

History
204 lines (104 loc) · 3.62 KB

ItemsNotFoundError.md

File metadata and controls

204 lines (104 loc) · 3.62 KB

elections-cpl.api.hscc.bdpa.orgDocs


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

Class: ItemsNotFoundError<T>

Represents a failure to locate one or more items or resources represented by a string literal item or the item's constructor name.

Extends

Type parameters

T = unknown

Constructors

new ItemsNotFoundError()

new ItemsNotFoundError<T>(itemOrName?): ItemsNotFoundError<T>

Represents a failure to locate one or more items or resources represented by a string literal item or the item's constructor name.

Parameters

itemOrName?: T

Returns

ItemsNotFoundError<T>

Overrides

NotFoundError.constructor

Source

node_modules/named-app-errors/dist/modules/error/not-found/items-not-found.d.ts:12

new ItemsNotFoundError()

new ItemsNotFoundError<T>(itemOrName, message): ItemsNotFoundError<T>

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

Parameters

itemOrName: T

message: string

Returns

ItemsNotFoundError<T>

Overrides

NotFoundError.constructor

Source

node_modules/named-app-errors/dist/modules/error/not-found/items-not-found.d.ts:17

Properties

cause?

optional cause: unknown

Inherited from

NotFoundError.cause

Source

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


itemOrName

readonly itemOrName: undefined | T

Source

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


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