elections-cpl.api.hscc.bdpa.org • Docs
elections-cpl.api.hscc.bdpa.org / src/error / ItemNotFoundError
Represents a failure to locate a specific item or resource, optionally
represented by a string literal itemName
or the item's constructor name.
• T = unknown
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.
• item?: T
• itemName?: string
node_modules/named-app-errors/dist/modules/error/not-found/item-not-found.d.ts:13
new ItemNotFoundError<
T
>(item
,itemName
,message
):ItemNotFoundError
<T
>
This constructor syntax is used by subclasses when calling this constructor
via super
.
• item: T
• itemName: string
• message: string
NotFoundError.constructor
node_modules/named-app-errors/dist/modules/error/not-found/item-not-found.d.ts:18
optional
cause:unknown
node_modules/typescript/lib/lib.es2022.error.d.ts:24
readonly
item:undefined
|T
node_modules/named-app-errors/dist/modules/error/not-found/item-not-found.d.ts:7
readonly
itemName:undefined
|string
node_modules/named-app-errors/dist/modules/error/not-found/item-not-found.d.ts:8
message:
string
node_modules/typescript/lib/lib.es5.d.ts:1077
name:
string
node_modules/typescript/lib/lib.es5.d.ts:1076
optional
stack:string
node_modules/typescript/lib/lib.es5.d.ts:1078
static
optional
prepareStackTrace: (err
,stackTraces
) =>any
Optional override for formatting stack traces
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
• err: Error
• stackTraces: CallSite
[]
any
NotFoundError
.prepareStackTrace
node_modules/@types/node/globals.d.ts:28
static
stackTraceLimit:number
node_modules/@types/node/globals.d.ts:30
static
captureStackTrace(targetObject
,constructorOpt
?):void
Create .stack property on a target object
• targetObject: object
• constructorOpt?: Function
void
NotFoundError
.captureStackTrace
node_modules/@types/node/globals.d.ts:21