Skip to main content
Version: Next

ConstraintViolationException

Base class for all constraint violation related errors detected in the driver.

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