home *** CD-ROM | disk | FTP | other *** search
- ------------------------------------------------------------------------------
- -- --
- -- GNAT COMPILER COMPONENTS --
- -- --
- -- A D A . E X C E P T I O N S --
- -- --
- -- S p e c --
- -- --
- -- $Revision: 1.6 $ --
- -- --
- -- This specification is adapted from the Ada Reference Manual for use with --
- -- GNAT. In accordance with the copyright of that document, you can freely --
- -- copy and modify this specification, provided that if you redistribute a --
- -- modified version, any changes that you have made are clearly indicated. --
- -- --
- ------------------------------------------------------------------------------
-
- package Ada.Exceptions is
-
- type Exception_Id is private;
- Null_Id : constant Exception_Id;
- function Exception_Name (X : Exception_Id) return String;
-
- type Exception_Occurrence is limited private;
- type Exception_Occurrence_Access is access all Exception_Occurrence;
- Null_Occurrence : constant Exception_Occurrence;
-
- procedure Raise_Exception (E : in Exception_Id; Message : in String := "");
- function Exception_Message (X : Exception_Occurrence) return String;
- procedure Reraise_Occurrence (X : Exception_Occurrence);
-
- function Exception_Identity (X : Exception_Occurrence) return Exception_Id;
- function Exception_Name (X : Exception_Occurrence) return String;
- -- Same as Exception_Name (Exception_Identity (X))
-
- function Exception_Information (X : Exception_Occurrence) return String;
-
- procedure Save_Occurrence
- (Target : out Exception_Occurrence;
- Source : in Exception_Occurrence);
- function Save_Occurrence
- (Source : in Exception_Occurrence)
- return Exception_Occurrence_Access;
-
- private
- type Exception_Record;
- type Exception_Id is access all Exception_Record;
- Null_Id : constant Exception_Id := null;
-
- type Exception_Data;
- type Exception_Data_Id is access all Exception_Data;
-
- type Exception_Occurrence is record
- Id : Exception_Id;
- Data_Id : Exception_Data_Id;
- end record;
-
- Null_Occurrence : constant Exception_Occurrence := (null, null);
-
- end Ada.Exceptions;
-