From: "David C. Hoos, Sr." <dhoossr@telocity.com>
Subject: Re: A suggestion, completely unrelated to the original topic
Date: Mon, 2 Dec 2002 17:21:04 -0600
Date: 2002-12-02T17:21:04-06:00 [thread overview]
Message-ID: <3debeae3_4@nopics.sjc> (raw)
In-Reply-To: 4wOG9.2144$c6.2494@bos-service2.ext.raytheon.com
"Wes Groleau" <wesgroleau@despammed.com> wrote in message
news:4wOG9.2144$c6.2494@bos-service2.ext.raytheon.com...
> When I see something like:
>
> > exception
> > when A: Ada.Io_Exceptions.Status_Error =>
> > T_Io.Put_Line("Status_Error in Char_Sets_Test.");
> > T_Io.Put_Line(Ada.Exceptions.Exception_Information(A));
> > when O: others =>
> > T_Io.Put_Line("Others_Error in Char_Sets_Test.");
> > T_Io.Put_Line(Ada.Exceptions.Exception_Information(O));
>
> I generally think it would be easier to use:
>
> exception
> when E : others =>
> T_Io.Put_Line(Ada.Exceptions.Exception_Name(E) &
> " in Char_Sets_Test.");
> T_Io.Put_Line(Ada.Exceptions.Exception_Information(E));
>
Exception_Information repeats the Exception_Name if the implementation
advice is followed, so explicitly outputting the name is probably
redundant. I think it's also good practice to write information about
exceptions to the Standard_Error file instead of the Standard_Output,
as this makes it easier for the execution environment (e.g., a shell)
to separate exception information from normal output.
Just my $0.02 worth
next prev parent reply other threads:[~2002-12-02 23:21 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-28 17:53 Character Sets Robert C. Leif
2002-11-28 18:08 ` Character Sets (plain text police report) Warren W. Gay VE3WWG
2002-11-28 18:11 ` Warren W. Gay VE3WWG
2002-11-29 11:12 ` Lutz Donnerhacke
2002-11-29 14:58 ` Frank J. Lhota
2002-11-29 20:37 ` Robert C. Leif
2002-11-30 14:49 ` Marin David Condic
2002-12-01 11:28 ` Jacob Sparre Andersen
2002-12-01 14:38 ` Marin David Condic
2002-12-01 20:25 ` Jacob Sparre Andersen
2002-12-02 9:43 ` Preben Randhol
2002-12-02 13:26 ` Marin David Condic
2002-12-02 6:44 ` Robert C. Leif
2002-12-02 9:41 ` Preben Randhol
2002-12-02 16:58 ` Charles Lindsey
2002-12-02 19:29 ` A suggestion, completely unrelated to the original topic Wes Groleau
2002-12-02 23:21 ` David C. Hoos, Sr. [this message]
2002-11-29 12:28 ` Character Sets Georg Bauhaus
2002-12-02 18:28 ` Stephen Leake
2002-12-03 2:45 ` Robert C. Leif
2002-12-03 13:33 ` Robert A Duff
2002-12-03 15:32 ` Juanma Barranquero
2002-12-04 0:49 ` Robert C. Leif
2002-12-14 3:27 ` David Starner
2002-12-14 22:53 ` Vadim Godunko
2002-12-15 3:46 ` David Starner
2002-12-15 23:26 ` Robert C. Leif
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox