Skip to main content
Version: 6.4

DatabaseObjectExistsException

Base class for all already existing database object related errors detected in the driver.

A database object is considered any asset that can be created in a database such as schemas, tables, views, sequences, triggers, constraints, indexes, functions, stored procedures etc.

Hierarchy

Index

Constructors

constructor

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