Skip to content
Alchemy Logo

FetchError

Defined in: packages/common/src/errors/FetchError.ts:6

Error class representing a "Fetch Error" error, typically thrown when a fetch request fails.

new FetchError(
   route,
   method,
   cause?): FetchError;

Defined in: packages/common/src/errors/FetchError.ts:16

Initializes a new instance of the error message with a default message indicating that no chain was supplied to the client.

Parameters

ParameterTypeDescription

route

string

The route that failed to fetch.

method

string

The HTTP method that was used.

cause?

Error

The cause of the error.

Returns

FetchError

Overrides

BaseError.constructor

PropertyTypeDefault value

name

string

"FetchError"

version

string

VERSION

Was this page helpful?