Go to the first, previous, next, last section, table of contents.
-
An exception_renaming_declaration is used to rename an exception.
Syntax
-
exception_renaming_declaration ::=
defining_identifier : exception renames exception_name;
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 section A.13 Exceptions in Input-Output
Go to the first, previous, next, last section, table of contents.