Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ForeignKeyConstraintError

Thrown when a foreign key constraint is violated in the database

Hierarchy

Index

Constructors

  • new ForeignKeyConstraintError(options?: ForeignKeyConstraintErrorOptions & DatabaseErrorSubclassOptions): ForeignKeyConstraintError

Properties

cause: DatabaseErrorParent
fields: undefined | {}
index: undefined | string
message: string
name: string
parameters: object
reltype: undefined | RelationshipType
sql: string
stack?: string
table: undefined | string
value: unknown
prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

Type declaration

stackTraceLimit: number

Accessors

  • get original(): this["cause"]
  • Returns this["cause"]

  • get parent(): this["cause"]
  • Returns this["cause"]

Methods

  • captureStackTrace(targetObject: object, constructorOpt?: Function): void
  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc