Class UnknownConstraintError

Thrown when constraint name is not found in the database

Hierarchy

Constructors

  • Parameters

    • Optional options: UnknownConstraintErrorOptions & DatabaseErrorSubclassOptions

    Returns UnknownConstraintError

Properties

cause: DatabaseErrorParent
constraint: undefined | string
fields: undefined | Record<string, string | number>
message: string
name: string
parameters: object
sql: string
stack?: string
table: undefined | string
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

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc