Skip to main content
Version: 5.2

OptimisticLockError <T>

Hierarchy

Index

Constructors

constructor

Properties

optionalreadonlyentity

entity?: T

message

message: string

name

name: string

optionalstack

stack?: string

staticoptionalprepareStackTrace

prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

Type declaration

staticstackTraceLimit

stackTraceLimit: number

Methods

getEntity

  • Gets instance of entity that caused this error.


    Returns undefined | AnyEntity<any>

staticcannotCommit

staticcannotModifyInverseCollection

staticcannotModifyReadonlyCollection

staticcannotUseGlobalContext

staticcannotUseOperatorsInsideEmbeddables

  • Parameters

    • className: string
    • propName: string
    • payload: Dictionary<any>

    Returns ValidationError<AnyEntity<any>>

staticcaptureStackTrace

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


    Parameters

    • targetObject: object
    • optionalconstructorOpt: Function

    Returns void

staticentityNotManaged

staticfromCollectionNotInitialized

staticfromMergeWithoutPK

staticfromWrongPropertyType

  • Parameters

    • entity: AnyEntity<any>
    • property: string
    • expectedType: string
    • givenType: string
    • givenValue: string

    Returns ValidationError<AnyEntity<any>>

staticinvalidCompositeIdentifier

staticinvalidEmbeddableQuery

  • Parameters

    • className: string
    • propName: string
    • embeddableType: string

    Returns ValidationError<AnyEntity<any>>

staticinvalidPropertyName

  • Parameters

    • entityName: string
    • invalid: string

    Returns ValidationError<AnyEntity<any>>

staticinvalidType

staticlockFailed

staticlockFailedVersionMismatch

staticnotDiscoveredEntity

staticnotEntity

staticnotVersioned

staticpropertyRequired

statictransactionRequired