Integrations (PTC products, 3rd party products and code) > Code integration (Ada, ARINC 653, C, C#, C++, IDL, Java, SQL and VB) > Ada Code > Generating Ada code > Mapping information for generation > Mapping information for Ada 83 generation scheme > Exception mapping for generating Ada 83 (Ada code)
  
Exception mapping for generating Ada 83 (Ada code)
For each Exception, ACS declares the exception in the package specification file.
The generation of an exception is derived from the properties of the Exception and the Stereotypes and Tag Definitions that are applied to it:
Exceptions must be scoped by either the model, a namespace Package or a Class or Data Type.
ACS ignores Exception Parameters.
If the Exception is stereotyped by the «Ada Pragma» stereotype, the tagged value of the Ada Pragma Text tag definition (applied by the «Ada Pragma» stereotype) is used to generate the pragmas.
If the Exception is stereotyped by the «Ada Renames» stereotype, the Exception is generated as a renames declaration.
If the Ada Rename Target Text tag definition (applied by the «Ada Renames» stereotype) specifies the name of a target exception, the renames declaration renames the specified exception.
If the Ada Rename Target Text tag definition is blank and the Ada Rename Target tag definition (applied by the «Ada Renames» stereotype) references an Exception in the Model, the renames declaration renames the exception that is generated from the referenced Exception.