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-Thread: 103376,9a8c8a29d3e2d7c6 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews2.google.com!not-for-mail From: anh_vo@udlp.com (Anh_Vo) Newsgroups: comp.lang.ada Subject: Re: [Ann] More Ada0Y packages for Ada95! Date: 31 Jul 2004 09:03:35 -0700 Organization: http://groups.google.com Message-ID: <5a59d6a9.0407310803.3a722101@posting.google.com> References: <5a59d6a9.0407301150.348121a8@posting.google.com> NNTP-Posting-Host: 66.81.150.11 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1091289816 9295 127.0.0.1 (31 Jul 2004 16:03:36 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 31 Jul 2004 16:03:36 +0000 (UTC) Xref: g2news1.google.com comp.lang.ada:2470 Date: 2004-07-31T09:03:35-07:00 List-Id: tmoran@acm.org wrote in message news:... > >I would like to make a suggestion regarding exception handler. It > >would be better to use Raise_Exception (E => Exception_Name'Identity, > >"useful message") than raise Exception_Name. In fact, it is extremely > >useful in debugging quickly where the problem comes from. > The usefulness of the message for "raise Exception_Name" is > compiler dependent, so whether the longer form is better is also > compiler dependent. But the Exception_Message must return the message. It is compiler independent. Thus, the exception can be located by a simple search for the message.