Skip to main content
Version: 5.9

ConstraintViolationException

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

Hierarchy

  • ServerException
    • ConstraintViolationException
      • ForeignKeyConstraintViolationException
      • CheckConstraintViolationException
      • NotNullConstraintViolationException
      • UniqueConstraintViolationException

Index

Constructors

constructor

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

    • previous: Error

    Returns ConstraintViolationException

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