Skip to main content

Interface: FetchErrorDetails

Defined in: src/core/errors.ts:19

Where a fetch error came from. url never carries the query string.

Remarks​

Passed to the constructors of NoDataError, AssetFetchError and InvalidParameterError; cause is stored through safeCause, so a raw HTTP-client error (request config, headers, cookies) never rides on the error.

Properties​

cause?​

optional cause?: unknown

Defined in: src/core/errors.ts:25

Underlying error (e.g. the network error), when there was one.


status?​

optional status?: number

Defined in: src/core/errors.ts:23

HTTP status, when a response was received.


url​

url: string

Defined in: src/core/errors.ts:21

Request URL (without query string, so keys passed as query params never leak).