Previous Table of Contents Next


10.5.20 ExceptionDef


   An ExceptionDef represents an exception definition. It can contain structs, unions, and enums.

   module CORBA {

   interface ExceptionDef : Contained, Container { readonly attribute TypeCode type; attribute StructMemberSeq members;

   };

   struct ExceptionDescription { Identifier name; RepositoryId id; RepositoryId defined_in; VersionSpec version; TypeCode type;

   }; };

   10.5.20.1 Read Interface

   The type attribute is a tk_except TypeCode describing the exception. The members attribute describes any exception members. The describe operation for a ExceptionDef object returns an ExceptionDescription.

   10.5.20.2 Write Interface

   Setting the members attribute also updates the type attribute. When setting the members attribute, the type member of the StructMember structure is ignored and should be set to TC_void.

   An ExceptionDef used as a Container may only contain StructDef, UnionDef, or EnumDef definitions.