|
@@ -1661,29 +1661,30 @@ For each exception, its superclasses are also indicated after the colon.
|
|
|
>>> admin_promote("other_user")
|
|
|
AdminPermissionDenied()
|
|
|
|
|
|
-.. exception:: InterfaceMismatch : ModelverseException
|
|
|
-
|
|
|
- Examples:
|
|
|
-
|
|
|
- *
|
|
|
-
|
|
|
- >>>
|
|
|
-
|
|
|
.. exception:: UnknownMetamodellingHierarchy : ModelverseException
|
|
|
|
|
|
+ The requested metamodelling hierarchy could not be resolved.
|
|
|
+ This is likely because no typing relation could be found between the specified model and metamodel, or if this typing relation is only a partial mapping that cannot be automatically resolved.
|
|
|
+ Note that this exception should never occur when opening the model using *formalisms/Bottom*.
|
|
|
+
|
|
|
Examples:
|
|
|
|
|
|
- *
|
|
|
+ * When opening an arbitrary model as a SimpleClassDiagrams model.
|
|
|
|
|
|
- >>>
|
|
|
+ >>> alter_context("models/my_pn", "formalisms/SimpleClassDiagrams")
|
|
|
+ >>> element_list("models/my_pn")
|
|
|
+ UnknownMetamodellingHierarchy()
|
|
|
|
|
|
.. exception:: NotAnAssociation : ModelverseException
|
|
|
|
|
|
+ The requested element is not an association or link, although it should be.
|
|
|
+
|
|
|
Examples:
|
|
|
|
|
|
- *
|
|
|
+ * When instantiating an association with a type that is not an association.
|
|
|
|
|
|
- >>>
|
|
|
+ >>> instantiate("models/my_pn", "Place", edge=("p1", "p2"))
|
|
|
+ NotAnAssociation
|
|
|
|
|
|
SCCD
|
|
|
----
|