Sanity Library Reference Docs
    Preparing search index...

    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
    Index

    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