Skip to main content
Version: 6.4

ReadOnlyException

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

Hierarchy

Index

Constructors

constructor

  • Parameters

    • previous: Error

    Returns ReadOnlyException

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