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=-0.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,98c463a9e98cfdf5 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-18 12:48:37 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!xmission!news-out.spamkiller.net!propagator2-maxim!propagator-maxim!news-in.spamkiller.net!feed.newsfeeds.com!cyclone-sf.pbi.net!151.164.30.35!cyclone.swbell.net!bos-service1.ext.raytheon.com!bos-service2.ext.raytheon.com.POSTED!not-for-mail Message-ID: <3D0F8E7E.5E29EE8B@despammed.com> From: Wes Groleau Reply-To: wesgroleau@despammed.com X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U) X-Accept-Language: en,es-MX,es,pt,fr-CA,fr MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada exceptions. unchecked? References: <8db3d6c8.0206112300.3965a62b@posting.google.com> <3D0750F1.7A12342@raytheon.com> <3D08ABBA.C8AF105@raytheon.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Tue, 18 Jun 2002 14:48:14 -0500 NNTP-Posting-Host: 151.168.144.162 X-Complaints-To: news@ext.ray.com X-Trace: bos-service2.ext.raytheon.com 1024429717 151.168.144.162 (Tue, 18 Jun 2002 15:48:37 EDT) NNTP-Posting-Date: Tue, 18 Jun 2002 15:48:37 EDT Organization: Raytheon Company Xref: archiver1.google.com comp.lang.ada:26293 Date: 2002-06-18T14:48:14-05:00 List-Id: > > I suppose it's not possible to insist that people never propagate > > exceptions that don't make sense in their caller's world view? > > When I write my code, I have _no idea_ who might be calling it, so I > have _no idea_ what might make sense in their world view. So I throw > exceptions, and let them decide. To put it another way, the proper response to an exception in a general purpose subprogram depends on what the inputs and outputs are being used for. No way am I going to write exception when Constraint_Error => if Caller = Task_A and Caller_Line_Number = 517 and Item_That_Was_Out_Of_Range = First_Parameter then ..... :-) -- Wes Groleau http://freepages.rootsweb.com/~wgroleau