Class FetchFailedError

Represents an error from a failed fetch request.

The root cause is often extremely difficult to determine.

Hierarchy (view full)

Constructors

  • Parameters

    • message: undefined | string
    • request: Request
    • options: {
          cause?: Error;
          isSafeToRetry?: null | boolean;
      } = {}
      • Optional cause?: Error
      • Optional isSafeToRetry?: null | boolean

    Returns FetchFailedError

Properties

isSafeToRetry: null | boolean

Indicates whether the request that caused this error can be safely retried.

name: string = "FetchFailedError"
request: Request

Fetch request object.

prepareStackTrace?: ((err, stackTraces) => any)

Optional override for formatting stack traces

Type declaration

    • (err, stackTraces): any
    • Parameters

      • err: Error
      • stackTraces: CallSite[]

      Returns any

stackTraceLimit: number

Methods

  • Returns {
        code: number;
        error: boolean;
        errorMessage: string;
    }

    • code: number
    • error: boolean
    • errorMessage: string