Skip to main content
Version: 6.4

ConnectionException

Base class for all connection related errors detected in the driver.

Hierarchy

Index

Constructors

constructor

Properties

optionalinheritedcause

cause?: unknown

optionalinheritedcode

code?: string

optionalinheritederrmsg

errmsg?: string

optionalinheritederrno

errno?: number

inheritedmessage

message: string

inheritedname

name: string

optionalinheritedsqlMessage

sqlMessage?: string

optionalinheritedsqlState

sqlState?: string

optionalinheritedstack

stack?: string

staticoptionalinheritedprepareStackTrace

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

Optional override for formatting stack traces

@see

Type declaration

    • (err: Error, stackTraces: CallSite[]): any
    • Parameters

      • err: Error
      • stackTraces: CallSite[]

      Returns any

staticinheritedstackTraceLimit

stackTraceLimit: number

Methods

staticinheritedcaptureStackTrace

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


    Parameters

    • targetObject: object
    • optionalconstructorOpt: Function

    Returns void