Exception handling syntax: Difference between revisions

Content deleted Content added
m [[Ada (programming language)|Ada]]: add declaration in example, removed epilogue as this is handled by the template
Line 5:
=== [[Ada (programming language)|Ada]] ===
 
{{wikibooksWikibooks|Ada Programming|Exceptions}}
 
==== Exception declarations ====
 
Some_Error : '''exception''';
 
==== Raising exceptions ====
Line 17:
==== Exception handling and propagation ====
 
'''with''' Ada.Exceptions; '''use''' Ada.Exceptions;
Some_Error : '''exception''';
'''procedure''' Foo '''is'''
Line 35 ⟶ 36:
Put (Exception_Message (Error));
'''end''' Foo;
 
For a more complete discussion of exceptions in Ada see [[:Wikibooks:Ada Programming/Exceptions|the wikibook on Ada]].
 
=== [[BASIC]] ===