E093 Class Is Not Superclass Constraint
[Previous]  [Next] 
|
User Manual [Previous]  [Next] E093 Class Is Not Superclass ConstraintUmple semantic error raised when a class is not the superclass of a given class as defined by a constraintModel constraints can be applied to Umple classes to ensure they respect certain properties, as defined in their constraints. This error is raised if a class is not the superclass of a given class as expected from the constraint. Example//The error is produced, the //constraint is not respected because //A is not a superclass of B //Alternative syntax in comment class A { //[model: A parent of B] [model: A superclass B] } class B { } Load the above code into UmpleOnline Solution to The Above So the Message No Longer Appears//The constraint is now respected //and the error does not occur class A { [model: A superclass B] } class B { isA A; } Load the above code into UmpleOnline |