comp.lang.ada
 help / color / mirror / Atom feed
From: Preben Randhol <randhol+abuse@pvv.org>
Subject: Re: Whether to raise exception or End_of_List function
Date: Wed, 21 Nov 2001 18:51:20 +0000 (UTC)
Date: 2001-11-21T18:51:20+00:00	[thread overview]
Message-ID: <slrn9vntpg.7nm.randhol+abuse@kiuk0156.chembio.ntnu.no> (raw)
In-Reply-To: ud72cau4d.fsf@gsfc.nasa.gov

On 21 Nov 2001 12:53:06 -0500, Stephen Leake wrote:
> You should always provide a function that allows a user to determine
> whether an exception would be raised, for _all_ operations in your
> library.

I saw now (that I started to think about possible problems that can
arise) that my function Goto_Node_Id can fail if a wrong Id is given. I
guess it is better to turn it into a function and return false if the
Node_id cannot be found.

> Some people like to just let the exception be raised, others prefer to
> check for it. 

I have noticed that some libraries only raises a lot of exceptions and
leave it at that. That was the reason for my questions. As I also read
that exceptions can be a monstrosity if over used.

Thanks

Preben
-- 
 ()   Join the worldwide campaign to protect fundamental human rights.
'||}
{||'                                           http://www.amnesty.org/



  reply	other threads:[~2001-11-21 18:51 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 [this message]
2001-11-22  3:53     ` Nick Roberts
2001-11-22 10:23       ` Preben Randhol
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