Skip to main content
Version: 5.9

DatabaseObjectNotFoundException

Base class for all unknown 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

  • ServerException
    • DatabaseObjectNotFoundException
      • TableNotFoundException

Index

Constructors

constructor

  • new DatabaseObjectNotFoundException(previous: Error): DatabaseObjectNotFoundException
  • Parameters

    • previous: Error

    Returns DatabaseObjectNotFoundException

Properties

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

Type declaration

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