Options
All
  • Public
  • Public/Protected
  • All
Menu

This error is thrown when the server is unreachable. For example, the server may have crashed due to a server-side bug, the client sent the server a malformed request, or the client's internet connection is down.

Hierarchy

  • Error
    • ConnectionError

Index

Constructors

constructor

  • Parameters

    • Optional message: string

    Returns ConnectionError

Properties

message

message: string

name

name: string

Optional prepareStackTrace

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

Optional override for formatting stack traces

see

https://github.com/v8/v8/wiki/Stack%20Trace%20API#customizing-stack-traces

Optional stack

stack: undefined | string

stackTraceLimit

stackTraceLimit: number

Methods

captureStackTrace

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

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc