Skip to main content
Version: Next

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

optionalcause

cause?: unknown

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

Optional override for formatting stack traces

@see

Type declaration

    • (err: Error, stackTraces: CallSite[]): any
    • Parameters

      • err: Error
      • stackTraces: CallSite[]

      Returns any

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