Class ConnectionFailedError

Thrown if the EventSource connection could not be established. Note that ConnectionFailedErrors are rare, and disconnects will normally be handled by the EventSource instance itself and emitted as reconnect events.

Hierarchy

  • Error
    • ConnectionFailedError

Constructors

  • Parameters

    • Optionalmessage: string

    Returns ConnectionFailedError

  • Parameters

    • Optionalmessage: string
    • Optionaloptions: ErrorOptions

    Returns ConnectionFailedError

Properties

cause?: unknown
message: string
name: "ConnectionFailedError" = 'ConnectionFailedError'
stack?: string
prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void