list of dots Digital Research Alliance of Canada logo  NSERC logo  University of Ottawa logo / UniversitĂ© d'Ottawa

User Manual    [Previous]   [Next]   

E202 Trait not defined

Umple semantic error resulting from a trait not being defined

In Umple, when traits are used inside of classes or traits they have to be defined. The Umple compiler does not allow the use of traits that are not defined in the system.

Example

//In  this example, trait "T"
// uses trait "T1" which is not available. 
interface I{
	//elements
}

class A {
	isA I;
	isA T; 
}

trait T{
  isA T1;
}
      

Load the above code into UmpleOnline

 

Solution to The Above So the Message No Longer Appears

//In  this example, the error
// has been resolved just by
// defining trait T1. 
interface I{
	//elements
}

class A {
	isA I;
	isA T; 
}

trait T{
  isA T1;
}

trait T1{
	//elements
}
      

Load the above code into UmpleOnline