Exception handling syntax: Difference between revisions

Content deleted Content added
Undo revision 99109711 by 82.41.186.154 (talk)
Line 4:
 
=== [[Ada (programming language)|Ada]] ===
with Ada.Exceptions; use Ada.Exceptions;
:
procedure Foo is
begin
Do_Something_Interesting;
:
-- Start of exception declaration
exception
Line 22 ⟶ 21:
Put_Line (Exception_Name (Error));
Put (Exception_Message (Error));
end Foo;
 
For a more complete discussion of exceptions in Ada see [[:Wikibooks:Ada Programming/Exceptions|the wikibook on Ada]].