Skip to content

Latest commit

 

History

History
231 lines (116 loc) · 3.33 KB

File metadata and controls

231 lines (116 loc) · 3.33 KB

elections-cpl.api.hscc.bdpa.orgDocs


elections-cpl.api.hscc.bdpa.org / lib/json-node-fetch / JsonFetchError

Class: JsonFetchError<T>

Represents a JSON Fetch error.

Extends

  • FetchError

Type parameters

T extends JsonObject | JsonPrimitive | undefined

Constructors

new JsonFetchError()

new JsonFetchError<T>(res, json, message): JsonFetchError<T>

Parameters

res: undefined | Response

json: T

message: string

Returns

JsonFetchError<T>

Overrides

FetchError.constructor

Source

lib/json-node-fetch/index.ts:22

Properties

cause?

optional cause: unknown

Inherited from

FetchError.cause

Source

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


code?

optional code: string

Inherited from

FetchError.code

Source

node_modules/@types/node-fetch/index.d.ts:154


errno?

optional errno: string

Inherited from

FetchError.errno

Source

node_modules/@types/node-fetch/index.d.ts:155


json

readonly json: T

Source

lib/json-node-fetch/index.ts:24


message

message: string

Inherited from

FetchError.message

Source

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


name

name: "FetchError"

Inherited from

FetchError.name

Source

node_modules/@types/node-fetch/index.d.ts:151


res

readonly res: undefined | Response

Source

lib/json-node-fetch/index.ts:23


stack?

optional stack: string

Inherited from

FetchError.stack

Source

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


type

type: string

Inherited from

FetchError.type

Source

node_modules/@types/node-fetch/index.d.ts:153


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

FetchError.prepareStackTrace

Source

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


stackTraceLimit

static stackTraceLimit: number

Inherited from

FetchError.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

FetchError.captureStackTrace

Source

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