Class OptimisticLockError

Thrown when attempting to update a stale model instance

Hierarchy

  • Error
    • OptimisticLockError

Constructors

  • Parameters

    • Optional options: OptimisticLockErrorOptions
    • Optional errorOptions: ErrorOptions

    Returns OptimisticLockError

Properties

cause?: Error
message: string
modelName: undefined | string
name: string
stack?: string
values: undefined | Record<string, unknown>
where: undefined | Record<string, 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

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc