MetadataError <T>
Hierarchy
- ValidationError<T>
- MetadataError
Index
Constructors
Properties
Methods
- getEntity
- cannotCommit
- cannotModifyInverseCollection
- cannotModifyReadonlyCollection
- cannotRemoveFromCollectionWithoutOrphanRemoval
- cannotUseGlobalContext
- cannotUseOperatorsInsideEmbeddables
- captureStackTrace
- duplicateEntityDiscovered
- duplicateFieldName
- entityNotFound
- entityNotManaged
- fromCollectionNotInitialized
- fromInversideSidePrimary
- fromMergeWithoutPK
- fromMissingOption
- fromMissingPrimaryKey
- fromUnknownEntity
- fromWrongOwnership
- fromWrongPropertyType
- fromWrongReference
- fromWrongReferenceKind
- fromWrongRepositoryType
- fromWrongTypeDefinition
- invalidCompositeIdentifier
- invalidEmbeddableQuery
- invalidManyToManyWithPivotEntity
- invalidPrimaryKey
- invalidPropertyName
- invalidType
- invalidVersionFieldType
- missingMetadata
- multipleDecorators
- multipleVersionFields
- noEntityDiscovered
- nonPersistentCompositeProp
- notDiscoveredEntity
- notEntity
- onlyAbstractEntitiesDiscovered
- propertyRequired
- propertyTargetsEntityType
- targetIsAbstract
- transactionRequired
- unknownIndexProperty
Constructors
constructor
Parameters
message: string
optionalentity: T
Returns MetadataError<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
staticduplicateEntityDiscovered
Parameters
paths: string[]
subject: string = 'entity names'
Returns MetadataError<Partial<any>>
staticduplicateFieldName
Parameters
className: string
names: [string, string][]
Returns MetadataError<Partial<any>>
staticentityNotFound
Parameters
name: string
path: string
Returns MetadataError<Partial<any>>
staticinheritedentityNotManaged
Parameters
entity: Partial<any>
Returns ValidationError<Partial<any>>
staticinheritedfromCollectionNotInitialized
Parameters
entity: Partial<any>
prop: EntityProperty<any, any>
Returns ValidationError<Partial<any>>
staticfromInversideSidePrimary
Parameters
meta: EntityMetadata<any>
owner: EntityProperty<any, any>
prop: EntityProperty<any, any>
Returns MetadataError<Partial<any>>
staticinheritedfromMergeWithoutPK
Parameters
meta: EntityMetadata<any>
Returns ValidationError<Partial<any>>
staticfromMissingOption
Parameters
meta: EntityMetadata<any>
prop: EntityProperty<any, any>
option: string
Returns MetadataError<Partial<any>>
staticfromMissingPrimaryKey
Parameters
meta: EntityMetadata<any>
Returns MetadataError<Partial<any>>
staticfromUnknownEntity
Parameters
className: string
source: string
Returns MetadataError<Partial<any>>
staticfromWrongOwnership
Parameters
meta: EntityMetadata<any>
prop: EntityProperty<any, any>
key: inversedBy | mappedBy
Returns MetadataError<Partial<any>>
staticinheritedfromWrongPropertyType
Parameters
entity: Partial<any>
property: string
expectedType: string
givenType: string
givenValue: string
Returns ValidationError<Partial<any>>
staticfromWrongReference
Parameters
meta: EntityMetadata<any>
prop: EntityProperty<any, any>
key: inversedBy | mappedBy
optionalowner: EntityProperty<any, any>
Returns MetadataError<Partial<any>>
staticfromWrongReferenceKind
Parameters
meta: EntityMetadata<any>
owner: EntityProperty<any, any>
prop: EntityProperty<any, any>
Returns MetadataError<Partial<any>>
staticinheritedfromWrongRepositoryType
Parameters
entityName: string
repoType: string
method: string
Returns ValidationError<Partial<any>>
staticfromWrongTypeDefinition
Parameters
meta: EntityMetadata<any>
prop: EntityProperty<any, any>
Returns MetadataError<Partial<any>>
staticinheritedinvalidCompositeIdentifier
Parameters
meta: EntityMetadata<any>
Returns ValidationError<Partial<any>>
staticinheritedinvalidEmbeddableQuery
Parameters
className: string
propName: string
embeddableType: string
Returns ValidationError<Partial<any>>
staticinvalidManyToManyWithPivotEntity
Parameters
meta1: EntityMetadata<any>
prop1: EntityProperty<any, any>
meta2: EntityMetadata<any>
prop2: EntityProperty<any, any>
Returns MetadataError<Partial<any>>
staticinvalidPrimaryKey
Parameters
meta: EntityMetadata<any>
prop: EntityProperty<any, any>
requiredName: string
Returns MetadataError<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>>
staticinvalidVersionFieldType
Parameters
meta: EntityMetadata<any>
Returns MetadataError<Partial<any>>
staticmissingMetadata
Parameters
entity: string
Returns MetadataError<Partial<any>>
staticmultipleDecorators
Parameters
entityName: string
propertyName: string
Returns MetadataError<Partial<any>>
staticmultipleVersionFields
Parameters
meta: EntityMetadata<any>
fields: string[]
Returns MetadataError<Partial<any>>
staticnoEntityDiscovered
Returns MetadataError<Partial<any>>
staticnonPersistentCompositeProp
Parameters
meta: EntityMetadata<any>
prop: EntityProperty<any, any>
Returns MetadataError<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>>
staticonlyAbstractEntitiesDiscovered
Returns MetadataError<Partial<any>>
staticinheritedpropertyRequired
Parameters
entity: Partial<any>
property: EntityProperty<any, any>
Returns ValidationError<Partial<any>>
staticpropertyTargetsEntityType
Parameters
meta: EntityMetadata<any>
prop: EntityProperty<any, any>
target: EntityMetadata<any>
Returns MetadataError<Partial<any>>
statictargetIsAbstract
Parameters
meta: EntityMetadata<any>
prop: EntityProperty<any, any>
Returns MetadataError<Partial<any>>
staticinheritedtransactionRequired
Returns ValidationError<Partial<any>>
staticunknownIndexProperty
Parameters
meta: EntityMetadata<any>
prop: string
type: string
Returns MetadataError<Partial<any>>
Optional override for formatting stack traces
https://v8.dev/docs/stack-trace-api#customizing-stack-traces