comp.lang.ada
 help / color / mirror / Atom feed
From: news.crd.ge.com!e7sa!groleau@uunet.uu.net  (Wes Groleau x1240 C73-8)
Subject: Re: Exceptions in Declarative Region
Date: 16 Aug 93 12:22:44 GMT	[thread overview]
Message-ID: <CBuqDw.M03@crdnns.crd.ge.com> (raw)

In article <1993Aug13.024920.22726@scf.loral.com> bashford@srs.loral.com (Dave 
Bashford) writes:
>If an exception occurs in the elaboration of a global package or the 
>declaritive part of a main subprogram, there doesn't appear to be any
>way for the program to catch the exception and the user will get the
>cryptic and probably useless error message generated by the Ada runtime
>kernal. Is this true or am I missing something ?

It's true.  However, if that is unacceptable, and if your interactive debugger
doesn't help, try this:

with MAIN_PROGRAM;
procedure EXCEPTION_HANDLER is
  -- nothing here to raise an exception...
begin
   MAIN_PROGRAM;
exception
   when -- you fill in the rest
end EXCEPTION_HANDLER;

             reply	other threads:[~1993-08-16 12:22 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-08-16 12:22 Wes Groleau x1240 C73-8 [this message]
  -- strict thread matches above, loose matches on Subject: below --
1993-08-13  4:16 Exceptions in Declarative Region cis.ohio-state.edu!magnus.acs.ohio-state.edu!math.ohio-state.edu!sdd.hp.c
1993-08-13  3:49 Michael Feldman
1993-08-13  3:27 Michael Feldman
1993-08-13  3:23 Michael Feldman
1993-08-13  2:49 Dave Bashford
1993-08-12 23:02 Mark A Biggar
1993-08-12 22:58 Mark A Biggar
1993-08-12 22:34 Dave Bashford
1993-08-12 18:53 agate!howland.reston.ans.net!vixen.cso.uiuc.edu!sdd.hp.com!col.hp.com!csn
replies disabled

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