@inrupt/solid-client

Class: FetchError

Extends the regular JavaScript error object with access to the status code and status message.

Hierarchy

Index

Constructors

Constructors

constructor

+ new FetchError(message: string, errorResponse: Response & { ok: false }): FetchError

Defined in src/resource/resource.ts:214

Parameters:

Name

Type

message

string

errorResponse

Response & { ok: false }

Returns: FetchError

Properties

message

message: string

Inherited from SolidClientError.message

Defined in node_modules/typescript/lib/lib.es5.d.ts:974


name

name: string

Inherited from SolidClientError.name

Defined in node_modules/typescript/lib/lib.es5.d.ts:973


stack

Optional stack: undefined | string

Inherited from SolidClientError.stack

Defined in node_modules/typescript/lib/lib.es5.d.ts:975


statusCode

Readonly statusCode: number

Defined in src/resource/resource.ts:213


statusText

Optional Readonly statusText: undefined | string

Defined in src/resource/resource.ts:214