Class BulkRecordError

Thrown when bulk operation fails, it represent per record level error. Used with AggregateError

Param

Error for a given record/instance

Param

DAO instance that error belongs to

Hierarchy

Constructors

  • Parameters

    • error: Error
    • record: Model<any, any>
    • Optional options: ErrorOptions

    Returns BulkRecordError

Properties

cause?: Error
errors: Error
message: string
name: string
record: Model<any, any>
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