Browse Source

Added some documentation about the new "UnkownMetamodellingHierarchy" exception

Yentl Van Tendeloo 8 years ago
parent
commit
ca213e3b1c
1 changed files with 13 additions and 0 deletions
  1. 13 0
      doc/wrappers.rst

+ 13 - 0
doc/wrappers.rst

@@ -1142,6 +1142,19 @@ Below is a list of all exceptions that the wrappers can raise, together with a s
    Likely, the wrapper is not up to date with the latest Modelverse operations.
    It is difficult to give an example, as this always indicates a bug in the wrapper itself.
 
+.. exception:: UnknownMetamodellingHierarchy
+
+   The requested model and metamodel have no existing relation between them: it is unknown how to make the model conform to the metamodel.
+   This might be because there is no possible relation, or just because there is no relation defined yet.
+
+   Examples:
+
+   * When erroneously trying to interpret a petrinet model as a Class Diagram.
+   
+     >>> alter_context("my_pn", "SimpleClassDiagrams")
+     >>> element_list()
+     UnknownMetamodellingHierarchy("my_pn")
+
 Custom
 ------