RosettaCodeData/Task/Exceptions/Ada/exceptions-4.adb

10 lines
172 B
Ada
Raw Permalink Normal View History

2026-04-30 12:34:36 -04:00
procedure Call_Foo is
begin
Foo;
exception
when Foo_Error =>
... -- do something
when others =>
... -- this catches all other exceptions
end Call_Foo;