Skip to main content
Version: 4.5

Class: ReadOnlyException#

core.ReadOnlyException

Exception for a write operation attempt on a read-only database element detected in the driver.

Hierarchy#

Constructors#

constructor#

+ new ReadOnlyException(previous: Error): ReadOnlyException

Parameters:#

NameType
previousError

Returns: ReadOnlyException

Inherited from: ServerException

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

Properties#

code#

Optional code: string

Inherited from: ServerException.code

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


errmsg#

Optional errmsg: string

Inherited from: ServerException.errmsg

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


errno#

Optional errno: number

Inherited from: ServerException.errno

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


message#

message: string

Inherited from: ServerException.message

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


name#

name: string

Inherited from: ServerException.name

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


prepareStackTrace#

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: Error, stackTraces: CallSite[]): any

Parameters:#

NameType
errError
stackTracesCallSite[]

Returns: any

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

Inherited from: ServerException.prepareStackTrace

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


sqlMessage#

Optional sqlMessage: string

Inherited from: ServerException.sqlMessage

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


sqlState#

Optional sqlState: string

Inherited from: ServerException.sqlState

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


stack#

Optional stack: string

Inherited from: ServerException.stack

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


stackTraceLimit#

stackTraceLimit: number

Inherited from: ServerException.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: ServerException

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

Last updated on by Renovate Bot