From: Wes Groleau <wesgroleau@despammed.com>
Subject: Re: Ada exceptions. unchecked?
Date: Tue, 18 Jun 2002 14:48:14 -0500
Date: 2002-06-18T14:48:14-05:00 [thread overview]
Message-ID: <3D0F8E7E.5E29EE8B@despammed.com> (raw)
In-Reply-To: u660gzgw4.fsf@gsfc.nasa.gov
> > I suppose it's not possible to insist that people never propagate
> > exceptions that don't make sense in their caller's world view?
>
> When I write my code, I have _no idea_ who might be calling it, so I
> have _no idea_ what might make sense in their world view. So I throw
> exceptions, and let them decide.
To put it another way, the proper response to an exception
in a general purpose subprogram depends on what the inputs
and outputs are being used for. No way am I going to write
exception
when Constraint_Error =>
if Caller = Task_A and
Caller_Line_Number = 517 and
Item_That_Was_Out_Of_Range = First_Parameter then
.....
:-)
--
Wes Groleau
http://freepages.rootsweb.com/~wgroleau
prev parent reply other threads:[~2002-06-18 19:48 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-12 7:00 Ada exceptions. unchecked? steve_H
2002-06-12 13:52 ` Ted Dennison
2002-06-12 14:09 ` Larry Kilgallen
2002-06-12 13:47 ` Mark Johnson
2002-06-12 15:40 ` Larry Kilgallen
2002-06-12 16:07 ` Darren New
2002-06-12 22:21 ` Dale Stanbrough
2002-06-13 14:36 ` Hyman Rosen
2002-06-13 16:41 ` Darren New
2002-06-13 17:13 ` Hyman Rosen
2002-06-13 17:48 ` Darren New
2002-06-13 18:06 ` Hyman Rosen
2002-06-13 18:37 ` Darren New
2002-06-13 19:14 ` Hyman Rosen
2002-07-05 14:35 ` Stephen J. Bevan
2002-06-12 19:25 ` Simon Wright
2002-06-12 22:19 ` Gisle Sælensminde
2002-06-13 14:27 ` Mark Johnson
2002-06-14 21:32 ` Gisle Sælensminde
2002-06-14 21:45 ` Darren New
2002-06-15 15:10 ` Simon Wright
2002-06-15 21:26 ` AG
2002-06-15 23:37 ` Darren New
2002-06-15 23:50 ` AG
2002-06-15 23:57 ` Darren New
2002-06-17 18:21 ` Charles Lindsey
2002-06-18 16:32 ` Stephen Leake
2002-06-18 19:48 ` Wes Groleau [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