when exception_choice {| exception_choice} =>
sequence_of_statements
exception_choice ::= exception_name |
others
begin
sequence_of_statements exception
exception_handler
{exception_handler}
end
others
is only allowed for the last exception handler of a frame and as its only exception choice; it stands for all exceptions not listed in previous handlers of the frame, including exceptions whose names are not visible at the place of the exception handler.
begin
-- sequence of statements
exception
when
SINGULAR | NUMERIC_ERROR =>
PUT(" MATRIX IS SINGULAR ");
when others
=>
PUT(" FATAL ERROR ");
raise
ERROR;
end
;