comp.lang.ada
 help / color / mirror / Atom feed
From: "Tom Hargraves" <tharg@vtcinet.com>
Subject: Re: The best thing/greatest feature summary
Date: Tue, 31 Oct 2000 17:56:37 -0800
Date: 2000-10-31T17:56:37-08:00	[thread overview]
Message-ID: <39ff7547$1@rsl2.rslnet.net> (raw)
In-Reply-To: OTDL5.376306$i5.6185408@news1.frmt1.sfba.home.com


<tmoran@acm.org> 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.






  parent reply	other threads:[~2000-11-01  1:56 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <39DCB9E3.EAE8F426@ftw.rsc.raytheon.com>
2000-10-27 22:08 ` The best thing/greatest feature summary Wes Groleau
2000-10-28  1:01   ` Lothar Scholz
2000-11-24  2:15     ` Peter Horan
2000-11-24  0:00       ` Lothar Scholz
2000-11-24  0:00         ` Friedrich Dominicus
2000-10-28  1:03   ` Lothar Scholz
2000-10-31 14:44     ` Tom Hargraves
2000-10-31 18:07       ` tmoran
2000-10-31 19:58         ` Larry Kilgallen
2000-11-01  1:56         ` Tom Hargraves [this message]
2000-10-31 19:28       ` James Rogers
2000-11-01  2:13         ` Tom Hargraves
2000-11-01  3:27           ` James Rogers
2000-11-01 12:48             ` Ken Garlington
2000-11-01 14:03               ` Pat Rogers
2000-11-01 15:30               ` James Rogers
2000-11-01 22:12                 ` Tom Hargraves
2000-11-01 22:44                   ` Ted Dennison
2000-11-01 22:54                   ` Pat Rogers
2000-11-01 23:47                     ` James Rogers
2000-11-02  5:25                       ` Pat Rogers
2000-11-02  5:28                       ` Pat Rogers
2000-11-02 22:00                       ` Wes Groleau
2000-11-02  3:45                 ` Reflection (was: Re: The best thing/greatest feature summary) Jeff Carter
2000-11-02  6:57                   ` Ray Blaak
2000-11-02  8:42                     ` tmoran
2000-11-02 11:19                       ` David C. Hoos, Sr.
2000-11-02 18:09                         ` tmoran
2000-11-02 12:51                       ` David C. Hoos, Sr.
2000-11-03  2:26                         ` Jeff Carter
2000-11-02 14:33                     ` Tucker Taft
2000-11-02 16:02                     ` Ted Dennison
2000-11-04  0:00                       ` Florian Weimer
2000-11-03  2:23                     ` Jeff Carter
2000-11-03  5:05                   ` Randy Brukardt
2000-11-03  5:28                     ` Ken Garlington
2000-11-04  4:13                     ` Jeff Carter
2000-11-10  0:00       ` The best thing/greatest feature summary jacob navia
2000-10-31 21:01   ` Wes Groleau
2000-10-30 20:19 ` Roger Browne
2000-10-31 16:24   ` Greg
2000-10-31 16:55   ` Roger Browne
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox