From: Preben Randhol <randhol+abuse@pvv.org>
Subject: Re: Whether to raise exception or End_of_List function
Date: Thu, 22 Nov 2001 10:23:33 +0000 (UTC)
Date: 2001-11-22T10:23:33+00:00 [thread overview]
Message-ID: <slrn9vpkdd.v0.randhol+abuse@kiuk0156.chembio.ntnu.no> (raw)
In-Reply-To: 9tht9e$2j1ni$4@ID-25716.news.dfncis.de
On Thu, 22 Nov 2001 03:53:15 -0000, Nick Roberts wrote:
> "Preben Randhol" <randhol+abuse@pvv.org> wrote in message
> news:slrn9vntpg.7nm.randhol+abuse@kiuk0156.chembio.ntnu.no...
>> ...
>> As I also read
>> that exceptions can be a monstrosity if over used.
>
> And sometimes a piece of code can become a monstrosity (in terms of a
> proliferation of if-then-elses or whatever) if exceptions are underused.
> Indeed, sometimes the neophyte attempting to avoid using the humble 'goto'
> can end up in a similar mess.
Very true.
> When should one use exceptions? Exceptionally. The clue is in the name ;-)
Yes :-)
[snipped good example]
> Much better, eh? If more detailed diagnostics are required, one can always
> use Ada.Exceptions and provide extra information in the Message parameter
> when calling the Raise_Exception procedure.
Yes think that is smart so that it is easier to locate the problem.
Preben
--
() Join the worldwide campaign to protect fundamental human rights.
'||}
{||' http://www.amnesty.org/
next prev parent reply other threads:[~2001-11-22 10:23 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-11-21 15:17 Whether to raise exception or End_of_List function Preben Randhol
2001-11-21 16:32 ` Preben Randhol
2001-11-21 16:51 ` Mark Biggar
2001-11-21 17:00 ` Preben Randhol
2001-11-21 17:01 ` Larry Kilgallen
2001-11-21 17:03 ` Preben Randhol
2001-11-21 19:34 ` Ed Falis
2001-11-21 17:04 ` chris.danx
2001-11-21 17:09 ` chris.danx
2001-11-21 22:00 ` Larry Kilgallen
2001-11-21 17:11 ` Jeffrey Carter
2001-11-21 17:53 ` Stephen Leake
2001-11-21 18:51 ` Preben Randhol
2001-11-22 3:53 ` Nick Roberts
2001-11-22 10:23 ` Preben Randhol [this message]
2001-11-23 14:37 ` Preben Randhol
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox