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.1 required=5.0 tests=BAYES_00, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,9d303864ae4c70ad X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-04-13 02:01:42 PST Path: archiver1.google.com!news1.google.com!news.glorb.com!border1.nntp.ash.giganews.com!nntp.giganews.com!newshosting.com!nx01.iad01.newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!nnx.oleane.net!oleane!nnrp.oleane.net!skymaster!nobody From: "Jean-Pierre Rosen" Newsgroups: comp.lang.ada Subject: Re: exception parameters Date: Tue, 13 Apr 2004 10:04:02 +0200 Organization: Adalog Message-ID: References: <5ad0dd8a.0404090512.15af2908@posting.google.com> <5ad0dd8a.0404091828.6e79bb4e@posting.google.com> <5ad0dd8a.0404100735.7b2a8317@posting.google.com> NNTP-Posting-Host: mailhost.axlog.fr X-Trace: s1.read.news.oleane.net 1081846896 5723 195.25.228.57 (13 Apr 2004 09:01:36 GMT) X-Complaints-To: abuse@oleane.net NNTP-Posting-Date: Tue, 13 Apr 2004 09:01:36 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Xref: archiver1.google.com comp.lang.ada:7037 Date: 2004-04-13T10:04:02+02:00 List-Id: "Stephen Leake" a �crit dans le message de news:mailman.240.1081689629.327.comp.lang.ada@ada-france.org... > For example, I'm working on a database GUI. The low-level database > interface raises Database_Error with a string parameter. I have to > parse the string to get the actual database error code. It would be > simpler, and actually clearer, if the error code were avaialble as a > parameter. > If my program is not multi-tasked, I just store the error context in some global variables of the package, with accessor functions. If it is multi-tasked, I use task attributes. No need for exception parameters here. -- --------------------------------------------------------- J-P. Rosen (rosen@adalog.fr) Visit Adalog's web site at http://www.adalog.fr