Exceptions - STARIONGROUP/COMET-SDK-Community-Edition GitHub Wiki
Overview
The following CDP4-COMET-SDK exceptions are part of the CDP4Common library:
- Cdp4ModelValidationException
- ContainmentException
- IncompleteModelException
- NestedElementTreeException
CDP4-COMET-SDK exceptions must derive from
System.Exception
Cdp4ModelValidationException
The Cdp4ModelValidationException is thrown when a [COMET Data Model]] [validation rule is vialoted. These validation rules are derived from the meta-model and are implemented in the MetaInfo classes.
ContainmentException
The ContainmentException is thrown when their is a fault in the Containment hierarchy of a POCO.
IncompleteModelException
The IncompleteModelException is thrown when a POCO is incomplete, e.g. An EngineeringModel shall contain at least one Iteration, when the Iteration object is missing while executing business logic an IncompleteModelException may be thrown.
NestedElementTreeException
The NestedElementTreeException is thrown by the NestedElementTreeGenerator when there is a problem with the conditions to generate the Nested Element Tree are not met or when there is a problem with the POCO objects from which the tree is derived.