Skip to main content
Version: 5.2

ValidationError <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

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

staticinvalidCompositeIdentifier

staticinvalidEmbeddableQuery

staticinvalidPropertyName

staticinvalidType

staticnotDiscoveredEntity

staticnotEntity

staticpropertyRequired

statictransactionRequired