Ada Programming/Libraries/Ada.Exceptions

is a unit of the Predefined Language Environment since Ada 95.

The package allows you to analyze exceptions you have caught, to raise exceptions with an associated message or to save exceptions occurrences for later processing.

Usage
The following example shows how to implement a "last resort" error handler which just displays the information related to the error which occurred.

; Numeric_6 Exept Ada.Exceptions; ...               An_Exception :  => T_IO.Put_Line (Exept.Exception_Information (An_Exception)); Try;

Specification
Preelaborate Exceptions Exception_Id Preelaborable_Initialization Exception_Id Null_Id  Exception_Id Exception_Name Id  Exception_Id  String Wide_Exception_Name Id  Exception_Id  Wide_String Wide_Wide_Exception_Name Id  Exception_Id Wide_Wide_String Exception_Occurrence Preelaborable_Initialization Exception_Occurrence Exception_Occurrence_Access   Exception_Occurrence Null_Occurrence  Exception_Occurrence Raise_Exception E        Exception_Id Message  String  "" No_Return Raise_Exception Exception_Message X  Exception_Occurrence  String Reraise_Occurrence X  Exception_Occurrence Exception_Identity X  Exception_Occurrence Exception_Id Exception_Name X  Exception_Occurrence  String Wide_Exception_Name X  Exception_Occurrence Wide_String Wide_Wide_Exception_Name X  Exception_Occurrence Wide_Wide_String Exception_Information X  Exception_Occurrence  String Save_Occurrence Target     Exception_Occurrence Source      Exception_Occurrence Save_Occurrence Source  Exception_Occurrence Exception_Occurrence_Access Read_Exception_Occurrence Stream    AdaStreamsRoot_Stream_Type Item    Exception_Occurrence Write_Exception_Occurrence Stream    AdaStreamsRoot_Stream_Type Item    Exception_Occurrence Exception_Occurrence Exception_Occurrence Import Ada Exception_Id Import Ada Exception_Occurrence Import Ada Null_Id Import Ada Null_Occurrence AdaExceptions

Wikibook

 * Ada Programming/Libraries/Ada
 * Ada Programming/Strings