Diagnostics Object literal

Beta  

The list of IDiagnostic implementation classes used by the EC rule implementations.

Properties

Name Default Value Description
AbstractClassWithNonAbstractBase `createClassDiagnosticClass<[string, string]>(DiagnosticCodes.AbstractClassWithNonAbstractBase,
"Abstract Class '{0}' cannot derive from base class '{1}' because it is not an abstract class.")` EC-102: Required message parameters: childClass.FullName, baseClass.FullName
AbstractConstraintMustExistWithMultipleConstraints `createRelationshipConstraintDiagnosticClass<[string, string]>(DiagnosticCodes.AbstractConstraintMustExistWithMultipleConstraints,
"The {0}-Constraint of '{1}' has multiple constraint classes which requires an abstract constraint to be defined.")` EC-1601: Required message parameters: relationship end (source/target), relationship name
AbstractConstraintMustNarrowBaseConstraints `createSchemaItemDiagnosticClass<RelationshipClass, [string, string, string, string]>(DiagnosticCodes.AbstractConstraintMustNarrowBaseConstraints,
"The abstract constraint class '{0}' on the {1}-Constraint of '{2}' is not supported by the base class constraint in '{3}'.")` EC-1500: Required message parameters: abstract constraint class name, relationship end (source/target), relationship name, base relationship name
AtLeastOneConstraintClassDefined `createRelationshipConstraintDiagnosticClass<[string, string]>(DiagnosticCodes.AtLeastOneConstraintClassDefined,
"The {0}-Constraint of '{1}' does not contain any constraint classes.")` EC-1600: Required message parameters: relationship end (source/target), relationship name
BaseClassIsOfDifferentType `createClassDiagnosticClass<[string, string, string]>(DiagnosticCodes.BaseClassOfDifferentType,
"Class '{0}' cannot derive from base class '{1}' of type '{2}'.")` EC-101: Required message parameters: childClass.FullName, baseClass.FullName, baseClass.schemaItemType
BaseClassIsSealed `createClassDiagnosticClass<[string, string]>(DiagnosticCodes.BaseClassIsSealed,
"Class '{0}' cannot derive from sealed base class '{1}'.")` EC-100: Required message parameters: childClass.FullName, baseClass.FullName
ConstraintClassesDeriveFromAbstractContraint `createSchemaItemDiagnosticClass<RelationshipClass, [string, string, string, string]>(DiagnosticCodes.ConstraintClassesDeriveFromAbstractContraint,
"The constraint class '{0}' on the {1}-Constraint of '{2}' is not derived from the abstract constraint class '{3}'.")` EC-1502: Required message parameters: constraint class name, relationship end (source/target), relationship name, abstract constraint class name
CustomAttributeClassNotFound `createCustomAttributeContainerDiagnosticClass<[string, string]>(DiagnosticCodes.CustomAttributeClassNotFound,
"The CustomAttribute container '{0}' has a CustomAttribute with the class '{1}' which cannot be found.")` EC-502: Required message parameters: CustomAttribute container name and CustomAttributeClass name.
CustomAttributeNotOfConcreteClass `createCustomAttributeContainerDiagnosticClass<[string, string]>(DiagnosticCodes.CustomAttributeNotOfConcreteClass,
"The CustomAttribute container '{0}' has a CustomAttribute with the class '{1}' which is not a concrete class.")` EC-500: Required message parameters: CustomAttribute container name and CustomAttributeClass name.
CustomAttributeSchemaMustBeReferenced `createCustomAttributeContainerDiagnosticClass<[string, string]>(DiagnosticCodes.CustomAttributeSchemaMustBeReferenced,
"The CustomAttribute container '{0}' has a CustomAttribute with the class '{1}' whose schema is not referenced by the container's Schema.")` EC-501: Required message parameters: CustomAttribute container name, CustomAttributeClass name, CustomAttributeClass Schema name.
DerivedConstraintsMustNarrowBaseConstraints `createSchemaItemDiagnosticClass<RelationshipClass, [string, string, string, string]>(DiagnosticCodes.DerivedConstraintsMustNarrowBaseConstraints,
"The constraint class '{0}' on the {1}-Constraint of '{2}' is not supported by the base class constraint in '{3}'.")` EC-1501: Required message parameters: constraint class name, relationship end (source/target), relationship name, base relationship name
EnumerationTypeUnsupported `createSchemaItemDiagnosticClass<Enumeration, [string]>(DiagnosticCodes.EnumerationTypeUnsupported,
"Enumeration '{0}' has invalid primitive type.")` EC-700: Required message parameters: Enumeration name
IncompatibleTypePropertyOverride `createPropertyDiagnosticClass<[string, string, string, string, string]>(DiagnosticCodes.IncompatibleTypePropertyOverride,
"The ECProperty '{0}.{1}' has a base property '{2}.{1}' with a type of {3} which is incompatible with the type of {4}.")` EC-1301: Required message parameters: childClass.FullName, property name, baseClass.FullName, base property type, child property type
IncompatibleUnitPropertyOverride `createPropertyDiagnosticClass<[string, string, string, string, string, string, string]>(DiagnosticCodes.IncompatibleUnitPropertyOverride,
"The ECProperty '{0}.{1}' has a base property '{2}.{1}' with KindOfQuantity '{3}' with persistence unit '{4}' which is not the same as the persistence unit '{5}' of the provided KindOfQuantity '{6}'.")` EC-1302: Required message parameters: childClass.Name, property name, baseClass.Name, baseClass Koq name, baseClass Koq persistence unit name, child class Koq persistence unit name, child class Koq name
IncompatibleValueTypePropertyOverride `createPropertyDiagnosticClass<[string, string, string, string, string]>(DiagnosticCodes.IncompatibleValueTypePropertyOverride,
"The ECProperty '{0}.{1}' has a base property '{2}.{1}' with a value type of {3} which is incompatible with the value type of {4}.")` EC-1300: Required message parameters: childClass.FullName, property name, baseClass.FullName, base value type, child value type
MixinAppliedToClassMustDeriveFromConstraint `createSchemaItemDiagnosticClass<EntityClass, [string, string, string]>(DiagnosticCodes.MixinAppliedToClassMustDeriveFromConstraint,
"Mixin '{0}' cannot be applied to the class '{1}' because it does not satisfy the applies to constraint '{2}'.")` EC-1100: Required message parameters: mixin class fullName, class fullName, applies to constraint class fullName
NavigationClassMustBeAConstraintClassOfRelationship `createPropertyDiagnosticClass<[string, string, string, string]>(getCode(1306),
"The class '{0}' of NavigationProperty '{1}' is not supported by the {3} constraint of the referenced relationship '{2}'.")` EC-1306: Required message parameters: class name, property name, navigation relationship.fullName
NavigationRelationshipAbstractConstraintEntityOrMixin `createPropertyDiagnosticClass<[string, string]>(getCode(1305),
"The NavigationProperty '{0}', using the relationship '{1}', points to a RelationshipClass, which is not allowed. NavigationProperties must point to an EntityClass or Mixin.")` EC-1305: Required message parameters: property.fullName, navigation relationship.fullName
NavigationRelationshipMustBeRoot `createPropertyDiagnosticClass<[string, string]>(getCode(1303),
"The referenced relationship '{1}', used in NavigationProperty '{0}' is not the root relationship.")` EC-1303: Required message parameters: property.fullName, navigation relationship.fullName
NavigationTargetMustHaveSingularMultiplicity `createPropertyDiagnosticClass<[string, string, string]>(getCode(1304),
"NavigationProperty '{0}' uses the relationship '{1}' that cannot be traversed in the '{2}' direction due to a max multiplicity greater than 1.")` EC-1304: Required message parameters: property.fullName, navigation relationship.fullName
ReferenceCyclesNotAllowed `createSchemaDiagnosticClass<[string, string]>(getCode(3),
"Schema '{0}' has reference cycles: {1}")` EC-003: Required message parameters: schema name, cycle text
SchemaRefAliasMustBeUnique `createSchemaDiagnosticClass<[string, string, string, string]>(getCode(2),
"Schema '{0}' has multiple schema references ({2}, {3}) with the same alias '{1}', which is not allowed.")` EC-002: Required message parameters: schema name, reference schema alias, first schema reference name, second schema reference name.
SupplementalSchemasCannotBeReferenced `createSchemaDiagnosticClass<[string, string]>(getCode(1),
"Referenced schema '{1}' of schema '{0}' is a supplemental schema. Supplemental schemas are not allowed to be referenced.")` EC-001: Required message parameters: schema name, referenced schema name

Defined in

Last Updated: 06 October, 2021