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-7-bit X-Google-Thread: 103376,52fd60a337c05842 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-14 15:16:48 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!intgwpad.nntp.telstra.net!news.telstra.net!news-server.bigpond.net.au!not-for-mail From: Dale Stanbrough Newsgroups: comp.lang.ada Subject: Re: ada paper critic References: <3D095F70.8090001@telepath.com> User-Agent: MT-NewsWatcher/3.2 (PPC Mac OS X) Message-ID: Date: Fri, 14 Jun 2002 22:16:46 GMT NNTP-Posting-Host: 144.132.91.90 X-Complaints-To: news@bigpond.net.au X-Trace: news-server.bigpond.net.au 1024093006 144.132.91.90 (Sat, 15 Jun 2002 08:16:46 EST) NNTP-Posting-Date: Sat, 15 Jun 2002 08:16:46 EST Organization: BigPond Internet Services (http://www.bigpond.net.au) Xref: archiver1.google.com comp.lang.ada:25991 Date: 2002-06-14T22:16:46+00:00 List-Id: (Larry Kilgallen wrote: > > ...and doesn't the fact that the only way to attach information > > to an exception is via a string, requiring conversions to/from > > the appropriate format just to find out what -really- went wrong? > > The spirit of exception processing is that it is supposed to be done > on an infrequent basis. Performing giant sort in Cobol is more costly > than a simple multiplication in the same language. ?Maybe, but when you do need to use it, you may want to attach information to the exception so that you can determine what went wrong more precisely. Java allows you to throw objects descended from the Exception class; this seems like it could be quite handy at times. I've not used it though, so i'm not sure -how- useful it is. Dale