Skip to main content
Version: Next

Class: DriverException

core.DriverException

Base class for all errors detected in the driver.

Hierarchy#

Constructors#

constructor#

new DriverException(previous)

Parameters#

NameType
previousError

Overrides#

Error.constructor

Defined in#

packages/core/src/exceptions.ts:10

Properties#

code#

Optional code: string

Defined in#

packages/core/src/exceptions.ts:6


errmsg#

Optional errmsg: string

Defined in#

packages/core/src/exceptions.ts:10


errno#

Optional errno: number

Defined in#

packages/core/src/exceptions.ts:7


message#

message: string

Inherited from#

Error.message

Defined in#

docs/node_modules/typescript/lib/lib.es5.d.ts:974


name#

name: string

Inherited from#

Error.name

Defined in#

docs/node_modules/typescript/lib/lib.es5.d.ts:973


sqlMessage#

Optional sqlMessage: string

Defined in#

packages/core/src/exceptions.ts:9


sqlState#

Optional sqlState: string

Defined in#

packages/core/src/exceptions.ts:8


stack#

Optional stack: string

Inherited from#

Error.stack

Defined in#

docs/node_modules/typescript/lib/lib.es5.d.ts:975


prepareStackTrace#

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

Optional override for formatting stack traces

see https://v8.dev/docs/stack-trace-api#customizing-stack-traces

Type declaration#

▸ (err, stackTraces): any

Parameters#
NameType
errError
stackTracesCallSite[]
Returns#

any

Inherited from#

Error.prepareStackTrace

Defined in#

node_modules/@types/node/globals.d.ts:11


stackTraceLimit#

Static stackTraceLimit: number

Inherited from#

Error.stackTraceLimit

Defined in#

node_modules/@types/node/globals.d.ts:13

Methods#

captureStackTrace#

Static captureStackTrace(targetObject, constructorOpt?): void

Create .stack property on a target object

Parameters#

NameType
targetObjectobject
constructorOpt?Function

Returns#

void

Inherited from#

Error.captureStackTrace

Defined in#

node_modules/@types/node/globals.d.ts:4