@inrupt/solid-client / resource/resource / FetchError
Class: FetchError¶
resource/resource.FetchError
Extends the regular JavaScript error object with access to the status code and status message.
since
1.2.0
Hierarchy¶
-
↳ FetchError
Constructors¶
constructor¶
+ new FetchError(message
: string, errorResponse
: Response & { ok
: false }): FetchError
Parameters:¶
Name |
Type |
---|---|
|
string |
|
Response & { |
Returns: FetchError
Inherited from: SolidClientError
Defined in: src/resource/resource.ts:193
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
prepareStackTrace¶
• Optional
prepareStackTrace: undefined | (err
: Error, stackTraces
: CallSite[]) => any
Optional override for formatting stack traces
see
https://github.com/v8/v8/wiki/Stack%20Trace%20API#customizing-stack-traces
Defined in: node_modules/@types/node/globals.d.ts:140
response¶
• Readonly
response: Response & { ok
: false }
since
1.3.0
Defined in: src/resource/resource.ts:185
stack¶
• Optional
stack: undefined | string
Inherited from: SolidClientError.stack
Defined in: node_modules/typescript/lib/lib.es5.d.ts:975
Accessors¶
statusText¶
• get statusText(): undefined | string
Returns: undefined | string
Defined in: src/resource/resource.ts:191