From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,bc745b8412f53f25 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-03-01 03:37:26 PST Path: archiver1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!martinkl.dialup.fu-berlin.DE!not-for-mail From: Martin Klaiber Newsgroups: comp.lang.ada Subject: Re: Error-names. Date: Mon, 1 Mar 2004 12:29:02 +0100 Organization: Freie Universitaet Berlin Sender: Martin Klaiber Message-ID: References: <2Iq0c.15247$aT1.13123@newsread1.news.pas.earthlink.net> <6Br0c.9876$PR3.199012@attbi_s03> NNTP-Posting-Host: martinkl.dialup.fu-berlin.de (130.133.237.205) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.uni-berlin.de 1078141044 57316767 F 130.133.237.205 (10182) X-Orig-Path: not-for-mail User-Agent: tin/1.5.12-20020427 ("Sugar") (UNIX) (Linux/2.4.24 (i586)) Xref: archiver1.google.com comp.lang.ada:5971 Date: 2004-03-01T12:29:02+01:00 List-Id: Bj�rn Persson wrote: > function Get_Error_Code (E : Ada.Exceptions.Exception_Occurrence) > return C_Integer is > begin > Ada.Exceptions.Raise_Exception (E) > exception > when Program_Error => return Program_Error_Code; > when Constraint_Error => return Constraint_Error_Code; > ... > when others => return Unexpected_Error_Code; > end Get_Error_Code; Doesn't work here. Raise_Exception (E) causes the error: libopensteuer.adb:24:18: expected private type "Ada.Exceptions.Exception_Id" libopensteuer.adb:24:18: found private type "Ada.Exceptions.Exception_Occurrence" Sorry, I didn't look further how to fix it because I am a bit short of time. Martin