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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,fd8f3d2ebf73a4b7 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-11-21 10:51:22 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!213.204.128.162!news000.worldonline.se!newsfeed1.bredband.com!bredband!uio.no!ntnu.no!not-for-mail From: Preben Randhol Newsgroups: comp.lang.ada Subject: Re: Whether to raise exception or End_of_List function Date: Wed, 21 Nov 2001 18:51:20 +0000 (UTC) Organization: Norwegian university of science and technology Message-ID: References: NNTP-Posting-Host: kiuk0156.chembio.ntnu.no X-Trace: tyfon.itea.ntnu.no 1006368680 19377 129.241.83.82 (21 Nov 2001 18:51:20 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Wed, 21 Nov 2001 18:51:20 +0000 (UTC) User-Agent: slrn/0.9.7.2 (Linux) Xref: archiver1.google.com comp.lang.ada:16812 Date: 2001-11-21T18:51:20+00:00 List-Id: 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/