Skip to content

Exceptions

samatrhea edited this page Aug 21, 2024 · 6 revisions

Overview

The following CDP4-COMET-SDK exceptions are part of the CDP4Common library:

  1. Cdp4ModelValidationException
  2. ContainmentException
  3. IncompleteModelException
  4. 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.


« COMETCommon-CE Classless DTO  —  Documentation overview  —  CDP4Common-CE NestedElementTreeGenerator »

Clone this wiki locally