Skip to main content
Version: Next

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

externaloptionalinheritedcause

cause?: unknown

externalinheritedmessage

message: string

externalinheritedname

name: string

externaloptionalinheritedstack

stack?: string

staticexternaloptionalinheritedprepareStackTrace

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

staticexternalinheritedstackTraceLimit

stackTraceLimit: number

Methods

staticexternalinheritedcaptureStackTrace

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


    Parameters

    • externaltargetObject: object
    • externaloptionalconstructorOpt: Function

    Returns void