Skip to main content
Version: 5.2

MetadataError <T>

Hierarchy

Index

Constructors

constructor

  • new MetadataError<T>(message: string, entity?: T): MetadataError<T>
  • Type parameters

    Parameters

    • message: string
    • optionalentity: T

    Returns MetadataError<T>

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

staticconflictingPropertyName

staticduplicateEntityDiscovered

staticentityNotFound

staticentityNotManaged

staticfromCollectionNotInitialized

staticfromMergeWithoutPK

staticfromMissingPrimaryKey

staticfromUnknownEntity

staticfromWrongOwnership

staticfromWrongPropertyType

  • Parameters

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

    Returns ValidationError<AnyEntity<any>>

staticfromWrongReference

staticfromWrongReferenceType

staticfromWrongTypeDefinition

staticinvalidCompositeIdentifier

staticinvalidEmbeddableQuery

  • Parameters

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

    Returns ValidationError<AnyEntity<any>>

staticinvalidPrimaryKey

staticinvalidPropertyName

  • Parameters

    • entityName: string
    • invalid: string

    Returns ValidationError<AnyEntity<any>>

staticinvalidType

staticinvalidVersionFieldType

staticmissingMetadata

staticmultipleDecorators

staticmultipleVersionFields

staticnoEntityDiscovered

staticnotDiscoveredEntity

staticnotEntity

staticonlyAbstractEntitiesDiscovered

staticpropertyRequired

statictransactionRequired

staticunknownIndexProperty