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,LOTS_OF_MONEY autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fac41,b2bad1e85ca20475 X-Google-Attributes: gidfac41,public X-Google-Thread: 103376,5b3c19b1631bb558 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-10-31 17:43:37 PST From: "Tom Hargraves" Newsgroups: comp.lang.eiffel,comp.lang.ada References: <39fed7b6@rsl2.rslnet.net> Subject: Re: The best thing/greatest feature summary Date: Tue, 31 Oct 2000 17:56:37 -0800 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 NNTP-Posting-Host: van-port156.imag.net X-Original-NNTP-Posting-Host: van-port156.imag.net Message-ID: <39ff7547$1@rsl2.rslnet.net> X-Trace: 31 Oct 2000 17:43:35 -0800, van-port156.imag.net Path: supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!logbridge.uoregon.edu!newsfeed.stanford.edu!cyclone.bc.net!rsl2.rslnet.net!van-port156.imag.net Xref: supernews.google.com comp.lang.eiffel:944 comp.lang.ada:1675 Date: 2000-10-31T17:56:37-08:00 List-Id: wrote in message news:OTDL5.376306$i5.6185408@news1.frmt1.sfba.home.com... > >increase the detail in the error message, and be able to print or > >log the name of the routine or class in which it occured. > The better Ada compilers give a walkback in the string returned > by Ada.Exceptions.Exception_Information, eg > CONSTRAINT_ERROR > Divide By Zero Detected > On Line Number 7 In TEST.SOME_PROCEDURE > Called from line number 12 In TEST > and of course you can force an exception just to get such a string. > If object X is some kind of descendant of a Gun, then > Ada.Tags.Expanded_Name(X'tag) returns a string giving its full > name, eg, Children_Of_A_Gun.Son > Are those what you mean? Thanks for the reply! I wasn't thinking of the "better Ada compilers" exception case above, more the case: "I have a problem in this routine, I'd like to log it (since I'm in 'verbose mode'), and prefix the problem description with routine name, and optionally the name of the class I'm having problems in" The example I tried to express was the sort of problem where there is a programmable recovery, and in normal operation you don't want to display messages to the human operator for fear that he/she gets overloaded with detail. However, during system debugging, this information could be important to know. e.g. how do I record the fact that I was in routine X when I couldn't open that setup file and used defaults instead? The java routines seem to provide this information.