Class AssociationError

Thrown when an association is improperly constructed (see message for details)

Hierarchy

Constructors

  • Parameters

    • message: string
    • Optional options: ErrorOptions

    Returns AssociationError

Properties

cause?: Error
message: string
name: string
stack?: 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