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: Fri, 23 Nov 2001 14:37:17 +0000 (UTC)
Date: 2001-11-23T14:37:17+00:00	[thread overview]
Message-ID: <slrn9vsnl9.5ar.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:
> 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.

Actually Raise_Exception isn't necessarily needed as I see now. If I use it
my exception looks like this:

   Exception name: LISTS.WORDGROUPS_LIST.OUT_OF_LIST_BOUNDARY
   Message: End of List already reached. No next Node exists.

but if I simply use raise:

   Exception name: LISTS.WORDGROUPS_LIST.OUT_OF_LIST_BOUNDARY
   Message: double_linked_list.adb:80 instantiated at lists.ads:6

but in other circumstances it makes sense as long as one do not use the
same message at all the places where the exception can be raised.

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



      parent reply	other threads:[~2001-11-23 14:37 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
2001-11-23 14:37       ` Preben Randhol [this message]
replies disabled

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