DiagnosticCodes Object literal

Beta  

The unique diagnostic codes for ECObjects rules.

To provide meaning to code values, with anticipation of future rules for all current EC Types, the following value ranges should be used:

  • Schema: 000-099
  • Class: 100-199
  • Constant: 200-299
  • CustomAttribute 300-399
  • CustomAttributeClass: 400-499
  • CustomAttributeContainer: 500-599
  • EntityClass: 600-699
  • Enumeration: 700-799
  • Format: 800-899
  • InvertedUnit: 900-999
  • KindOfQuantity: 1000-1099
  • Mixin: 1100-1199
  • Phenomenon: 1200-1299
  • Property: 1300-1399
  • PropertyCategory: 1400-1499
  • RelationshipClass: 1500-1599
  • RelationshipConstraint: 1600-1699
  • StructClass: 1700-1799
  • Unit: 1800-1899
  • UnitSystem: 1900-1999

Properties

Name Default Value Description
AbstractClassWithNonAbstractBase getCode(102)  
AbstractConstraintMustExistWithMultipleConstraints getCode(1601)  
AbstractConstraintMustNarrowBaseConstraints getCode(1500)  
AtLeastOneConstraintClassDefined getCode(1600)  
BaseClassIsSealed getCode(100)  
BaseClassOfDifferentType getCode(101)  
ConstraintClassesDeriveFromAbstractContraint getCode(1502)  
CustomAttributeClassNotFound getCode(502)  
CustomAttributeNotOfConcreteClass getCode(500)  
CustomAttributeSchemaMustBeReferenced getCode(501)  
DerivedConstraintsMustNarrowBaseConstraints getCode(1501)  
EnumerationTypeUnsupported getCode(700)  
IncompatibleTypePropertyOverride getCode(1301)  
IncompatibleUnitPropertyOverride getCode(1302)  
IncompatibleValueTypePropertyOverride getCode(1300)  
MixinAppliedToClassMustDeriveFromConstraint getCode(1100)  

Defined in

Last Updated: 25 June, 2021