Spec-Zone.ru › Ada 2022
Ada Reference Manual (Ada 2022)

8.5.2 Exception Renaming Declarations

An exception_renaming_declaration is used to rename an exception.

Syntax

exception_renaming_declaration ::=
defining_identifier : exception renames exception_name
[aspect_specification];

Legality Rules

The renamed entity shall be an exception.

Static Semantics

An exception_renaming_declaration declares a new view of the renamed exception.

Examples

Example of renaming an exception:
EOF : exception renames Ada.IO_Exceptions.End_Error; -- see A.13


Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API