Contents Index Search Previous Next
11.3 Raise Statements
raises an exception.
if any, in a raise_statement
denote an exception.
with no exception_name
is, a re-raise statement
) shall be within a handler, but not within
a body enclosed by that handler.
To raise an exception
is to raise a new occurrence of that exception, as explained in 11.4
For the execution of a raise_statement
with an exception_name
named exception is raised.
For the execution of a
re-raise statement, the exception occurrence that caused transfer of
control to the innermost enclosing handler is raised again.
Examples of raise
raise Ada.IO_Exceptions.Name_Error; -- see A.13
raise; -- re-raise the current exception
Contents Index Search Previous Next Legal