Skip to main content
Version: 5.9

ConnectionException

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

Hierarchy

  • DriverException
    • ConnectionException

Index

Constructors

constructor

  • new ConnectionException(previous: Error): ConnectionException
  • Parameters

    • previous: Error

    Returns ConnectionException

Properties

optionalcode

code?: string

optionalerrmsg

errmsg?: string

optionalerrno

errno?: number

message

message: string

name

name: string

optionalsqlMessage

sqlMessage?: string

optionalsqlState

sqlState?: string

optionalstack

stack?: string

staticoptionalprepareStackTrace

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

Type declaration

staticstackTraceLimit

stackTraceLimit: number

Methods

staticcaptureStackTrace

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


    Parameters

    • targetObject: object
    • optionalconstructorOpt: Function

    Returns void