Skip to main content
Version: 4.4

Class: ServerException#

core.ServerException

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

Hierarchy#

Constructors#

constructor#

+ new ServerException(previous: Error): ServerException

Parameters:#

NameType
previousError

Returns: ServerException

Inherited from: DriverException

Defined in: packages/core/src/exceptions.ts:10

Properties#

code#

Optional code: undefined | string

Inherited from: DriverException.code

Defined in: packages/core/src/exceptions.ts:6


errmsg#

Optional errmsg: undefined | string

Inherited from: DriverException.errmsg

Defined in: packages/core/src/exceptions.ts:10


errno#

Optional errno: undefined | number

Inherited from: DriverException.errno

Defined in: packages/core/src/exceptions.ts:7


message#

message: string

Inherited from: DriverException.message

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


name#

name: string

Inherited from: DriverException.name

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


prepareStackTrace#

Optional 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

Inherited from: DriverException.prepareStackTrace

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


sqlMessage#

Optional sqlMessage: undefined | string

Inherited from: DriverException.sqlMessage

Defined in: packages/core/src/exceptions.ts:9


sqlState#

Optional sqlState: undefined | string

Inherited from: DriverException.sqlState

Defined in: packages/core/src/exceptions.ts:8


stack#

Optional stack: undefined | string

Inherited from: DriverException.stack

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


stackTraceLimit#

stackTraceLimit: number

Inherited from: DriverException.stackTraceLimit

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

Methods#

captureStackTrace#

captureStackTrace(targetObject: object, constructorOpt?: Function): void

Create .stack property on a target object

Parameters:#

NameType
targetObjectobject
constructorOpt?Function

Returns: void

Inherited from: DriverException

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

Last updated on by Martin Adámek