list of dots

User Manual    [Previous]   [Next]   

E093 Class Is Not Superclass Constraint

Umple semantic error raised when a class is not the superclass of a given class as defined by a constraint

Model 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