Skip to main content
Version: 3.8

SessionError

Errors of SessionError type will trigger a session rotation.

This error doesn't respect the maxRequestRetries option and has a separate limit of maxSessionRotations.

Hierarchy

Index

Constructors

constructor

  • Parameters

    • optionalmessage: string

    Returns SessionError

Properties

externaloptionalcause

cause?: unknown

externalmessage

message: string

externalname

name: string

externaloptionalstack

stack?: string

staticexternaloptionalprepareStackTrace

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

Type declaration

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