OptimisticLockError <T>
Hierarchy
- ValidationError<T>
- OptimisticLockError
Index
Constructors
Properties
Methods
- getEntity
- cannotCommit
- cannotModifyInverseCollection
- cannotModifyReadonlyCollection
- cannotRemoveFromCollectionWithoutOrphanRemoval
- cannotUseGlobalContext
- cannotUseOperatorsInsideEmbeddables
- captureStackTrace
- entityNotManaged
- fromCollectionNotInitialized
- fromMergeWithoutPK
- fromWrongPropertyType
- fromWrongRepositoryType
- invalidCompositeIdentifier
- invalidEmbeddableQuery
- invalidPropertyName
- invalidType
- lockFailed
- lockFailedVersionMismatch
- notDiscoveredEntity
- notEntity
- notVersioned
- propertyRequired
- transactionRequired
Constructors
constructor
Parameters
message: string
optionalentity: T
Returns OptimisticLockError<T>
Properties
optionalinheritedcause
optionalreadonlyinheritedentity
inheritedmessage
inheritedname
optionalinheritedstack
staticoptionalinheritedprepareStackTrace
Type declaration
Parameters
err: Error
stackTraces: CallSite[]
Returns any
staticinheritedstackTraceLimit
Methods
inheritedgetEntity
Gets instance of entity that caused this error.
Returns undefined | Partial<any>
staticinheritedcannotCommit
Returns ValidationError<Partial<any>>
staticinheritedcannotModifyInverseCollection
Parameters
owner: Partial<any>
property: EntityProperty<any, any>
Returns ValidationError<Partial<any>>
staticinheritedcannotModifyReadonlyCollection
Parameters
owner: Partial<any>
property: EntityProperty<any, any>
Returns ValidationError<Partial<any>>
staticinheritedcannotRemoveFromCollectionWithoutOrphanRemoval
Parameters
owner: Partial<any>
property: EntityProperty<any, any>
Returns ValidationError<Partial<any>>
staticinheritedcannotUseGlobalContext
Returns ValidationError<Partial<any>>
staticinheritedcannotUseOperatorsInsideEmbeddables
Parameters
className: string
propName: string
payload: unknown
Returns ValidationError<Partial<any>>
staticinheritedcaptureStackTrace
Create .stack property on a target object
Parameters
targetObject: object
optionalconstructorOpt: Function
Returns void
staticinheritedentityNotManaged
Parameters
entity: Partial<any>
Returns ValidationError<Partial<any>>
staticinheritedfromCollectionNotInitialized
Parameters
entity: Partial<any>
prop: EntityProperty<any, any>
Returns ValidationError<Partial<any>>
staticinheritedfromMergeWithoutPK
Parameters
meta: EntityMetadata<any>
Returns ValidationError<Partial<any>>
staticinheritedfromWrongPropertyType
Parameters
entity: Partial<any>
property: string
expectedType: string
givenType: string
givenValue: string
Returns ValidationError<Partial<any>>
staticinheritedfromWrongRepositoryType
Parameters
entityName: string
repoType: string
method: string
Returns ValidationError<Partial<any>>
staticinheritedinvalidCompositeIdentifier
Parameters
meta: EntityMetadata<any>
Returns ValidationError<Partial<any>>
staticinheritedinvalidEmbeddableQuery
Parameters
className: string
propName: string
embeddableType: string
Returns ValidationError<Partial<any>>
staticinheritedinvalidPropertyName
Parameters
entityName: string
invalid: string
Returns ValidationError<Partial<any>>
staticinheritedinvalidType
Parameters
type: Constructor<any>
value: any
mode: string
Returns ValidationError<Partial<any>>
staticlockFailed
Parameters
entityOrName: string | Partial<any>
Returns OptimisticLockError<Partial<any>>
staticlockFailedVersionMismatch
Parameters
entity: Partial<any>
expectedLockVersion: number | Date
actualLockVersion: number | Date
Returns OptimisticLockError<Partial<any>>
staticinheritednotDiscoveredEntity
Parameters
data: any
optionalmeta: EntityMetadata<any>
action: string = 'persist'
Returns ValidationError<Partial<any>>
staticinheritednotEntity
Parameters
owner: Partial<any>
prop: EntityProperty<any, any>
data: any
Returns ValidationError<Partial<any>>
staticnotVersioned
Parameters
meta: EntityMetadata<any>
Returns OptimisticLockError<Partial<any>>
staticinheritedpropertyRequired
Parameters
entity: Partial<any>
property: EntityProperty<any, any>
Returns ValidationError<Partial<any>>
staticinheritedtransactionRequired
Returns ValidationError<Partial<any>>
Optional override for formatting stack traces
https://v8.dev/docs/stack-trace-api#customizing-stack-traces