@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
, errorResponse
): FetchError
Parameters#
Name |
Type |
---|---|
|
|
|
|
Returns#
Overrides#
Defined in#
Properties#
response#
• Readonly
response: Response
& { ok
: false
}
Since
1.3.0
Defined in#
Accessors#
statusCode#
• get
statusCode(): number
Returns#
number
Defined in#
statusText#
• get
statusText(): undefined
| string
Returns#
undefined
| string