Options
All
  • Public
  • Public/Protected
  • All
Menu

Marks an error that mandates a disconnect of a single connection that was caused by a bad message (protocol error) being received from the server, e.g. an unparseable IRC message or an invalid response to some action.

Hierarchy

Index

Constructors

  • new ProtocolError(message?: string, cause?: Error): ProtocolError

Properties

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

Optional override for formatting stack traces

Type declaration

stackTraceLimit: number

Methods

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

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc