Issue 1081: ConstraintError exception needed in more IDL generation templates (mof-rtf) Source: (, ) Nature: Uncategorized Issue Severity: Summary: Summary: Section 7 underspecifies the use of ConstraintError in the raises clause of generated operations. It is only specified in the Type Create Template. However, it should be specified as part of the Package Create Template, the Association Template, the Attribute Template, the Reference Template, and the Operation Template. Its appearance depends on the constrained elements of constraint objects in the source model of IDL generation. Resolution: closed, resolved Revised Text: Actions taken: March 18, 1998: received issue May 8, 2000: closed issue Discussion: Response: Analysis of Constraints to determine precisely when they may or may not trigger exceptions is currently impossible, since Constraints may be expressed in any "language". Even if we prescribed a fixed language, it would be a "technically challenging" problem. Proposed resolutions: 1. The proposed solution to #1085 effectively removes this as an IDL mapping issue, since just about all mapped operations can now raise the "rolled up" ConstraintError exception. 2. When the text describing Constraint validation is added, make sure that it specifies when validation can occur. 3. Cross reference the M1 level operation semantic specifications to the Constraint validation specifications. Implementation: 1. The resolution of “Issue 1085: Consider a better approach to gen-erated exceptions (mof-rtf)” has resulted in all operations in the generated IDL being able to raise MofError which replaces theCon-straintError exception. Done. [SC] Implementation: 2. All constraints have a defined evaluation policy. Done. [SC] Implementation: 3. All Classes and DataTypes with constraints cross-reference the constrint specifications, and pick up the constraint descriptions and names using frame cros-refs. IDL and MODL updated in Chapter 3, “MOF Model and Interfaces”, Appendix B “MOF IDL Summary” and Appendix C “MODL Description of the MOF”. Done. [SC] End of Annotations:===== Return-Path: From: "Khalsa, GK" To: issues@omg.org, mof-rtf@omg.org Subject: MOF-RTF: ConstraintError exception needed in more IDL generation templates Date: Wed, 18 Mar 1998 11:22:42 -0700 Section 7 underspecifies the use of ConstraintError in the raises clause of generated operations. It is only specified in the Type Create Template. However, it should be specified as part of the Package Create Template, the Association Template, the Attribute Template, the Reference Template, and the Operation Template. Its appearance depends on the constrained elements of constraint objects in the source model of IDL generation.