Options
All
  • Public
  • Public/Protected
  • All
Menu

Class OptimisticLockError

Thrown when attempting to update a stale model instance

Hierarchy

Index

Constructors

  • new OptimisticLockError(options?: OptimisticLockErrorOptions, errorOptions?: ErrorOptions): OptimisticLockError
  • Parameters

    • Optional options: OptimisticLockErrorOptions
    • Optional errorOptions: ErrorOptions

    Returns OptimisticLockError

Properties

cause: undefined | 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

  • captureStackTrace(targetObject: object, constructorOpt?: Function): void
  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc