Integrations (PTC products, 3rd party products and code) > Code integration (Ada, ARINC 653, C, C#, C++, IDL, Java, SQL and VB) > IDL Code > Mapping information > Mapping information for UML items > Exception mapping for IDL (IDL code)
  
Exception mapping for IDL (IDL code)
For each Exception, ACS generates an exception in the appropriate IDL file. ACS generates code similar to this:
// Exception declarations
exception Exception1
{
// Parameter declarations
boolean Parameter1;
};
ACS uses Exceptions for generating the content of a Deployment Plan's Component Deployment Plan (CDP) file.
The generation of an Exception in an IDL file is derived from its properties and the Parameters it owns.
You can apply the «CORBAException» stereotype to an Exception, but this stereotype does not affect how the Exception is generated.
Child items:
If the Exception owns Parameters, ACS generates a parameter declaration for each Parameter. For Parameter mapping information, see Exception mapping for IDL (IDL code).
Properties:
If the Description property has a value, ACS generates the Description as a comment on the line before the exception declaration.
ACS generates the Name property as the name of the exception.
* 
ACS may modify the exception name that is added to the code to make it valid for IDL. You can specify the exact exception name to add to the code through the CODE_GENERATION_NAME property of a Class.
Other properties are ignored.
Tag Definitions:
Not applicable.