Class ErrorAbstract

The Base Error all Sequelize Errors inherit from.

Sequelize provides a host of custom error classes, to allow you to do easier debugging. All of these errors are exposed on the sequelize object and the sequelize constructor. All sequelize errors inherit from the base JS error object.

This means that errors can be accessed using Sequelize.ValidationError

Hierarchy

Constructors

  • Parameters

    • Optional message: string
    • Optional options: ErrorOptions

    Returns Error

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