elections-cpl.api.hscc.bdpa.org • Docs
elections-cpl.api.hscc.bdpa.org / lib/json-node-fetch / JsonFetchError
Represents a JSON Fetch error.
FetchError
• T extends JsonObject
| JsonPrimitive
| undefined
new JsonFetchError<
T
>(res
,json
,message
):JsonFetchError
<T
>
• res: undefined
| Response
• json: T
• message: string
FetchError.constructor
lib/json-node-fetch/index.ts:22
optional
cause:unknown
FetchError.cause
node_modules/typescript/lib/lib.es2022.error.d.ts:24
optional
code:string
FetchError.code
node_modules/@types/node-fetch/index.d.ts:154
optional
errno:string
FetchError.errno
node_modules/@types/node-fetch/index.d.ts:155
readonly
json:T
lib/json-node-fetch/index.ts:24
message:
string
FetchError.message
node_modules/typescript/lib/lib.es5.d.ts:1077
name:
"FetchError"
FetchError.name
node_modules/@types/node-fetch/index.d.ts:151
readonly
res:undefined
|Response
lib/json-node-fetch/index.ts:23
optional
stack:string
FetchError.stack
node_modules/typescript/lib/lib.es5.d.ts:1078
type:
string
FetchError.type
node_modules/@types/node-fetch/index.d.ts:153
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
FetchError.prepareStackTrace
node_modules/@types/node/globals.d.ts:28
static
stackTraceLimit:number
FetchError.stackTraceLimit
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
FetchError.captureStackTrace
node_modules/@types/node/globals.d.ts:21