Skip to main content
Version: 3.11

RetryRequestError

Errors of RetryRequestError type will always be retried by the crawler.

This error overrides the maxRequestRetries option, i.e. the request can be retried indefinitely until it succeeds.

Hierarchy

Index

Constructors

constructor

  • Parameters

    • optionalmessage: string

    Returns RetryRequestError

Properties

externaloptionalcause

cause?: unknown

externalmessage

message: string

externalname

name: string

externaloptionalstack

stack?: string

staticexternaloptionalprepareStackTrace

prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

Optional override for formatting stack traces

@see

Type declaration

    • (err: Error, stackTraces: CallSite[]): any
    • Parameters

      • externalerr: Error
      • externalstackTraces: CallSite[]

      Returns any

staticexternalstackTraceLimit

stackTraceLimit: number

Methods

staticexternalcaptureStackTrace

  • captureStackTrace(targetObject: object, constructorOpt?: Function): void
  • Create .stack property on a target object


    Parameters

    • externaltargetObject: object
    • externaloptionalconstructorOpt: Function

    Returns void