comp.lang.ada
 help / color / mirror / Atom feed
From: "R. Tim Coslet" <coslett@kaisere.com>
Subject: Re: Exception Propagation
Date: 1999/06/08
Date: 1999-06-08T00:00:00+00:00	[thread overview]
Message-ID: <375DD26B.7640D57F@kaisere.com> (raw)
In-Reply-To: m3wvxef8zw.fsf@mheaney.ni.net

No, he means something like...

  task body T is
    ...
  begin
    ...            -- Do one time task "setup" code here.
    loop
        ...        -- Do task "setup" code needed to "restart" here.
        begin
            ...    -- Main body of task.
        exception
        when others =>
            ...    -- Do "exception recovery & reporting" code here.
        end;
    end loop;

  end T;

This task can not be terminated by any exception, it just "restarts" at the
loop.

The "exception recovery & reporting" code might be null.


            R. Tim Coslet



Matthew Heaney wrote:

> Robert Dewar <robert_dewar@my-deja.com> writes:
>
> > I would have preferred that an unhandled exception in a task
> > caused termination of the entire program, you can always get
> > the bizarre effect in the RM if you really want it by doing:
> >
> >       exception when others => null;
> >
> > at the outer level of a task
>
> I don't understand this comment.
>
> Given this task body:
>
>   task body T is
>     ...
>   begin
>     ...
>   exception
>     when others => null;
>
>   end T;
>
> Are you saying that if an exception occurs, that that exception handler
> will cause behavior other than silent termination of task T?







  reply	other threads:[~1999-06-08  0:00 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-06-07  0:00 Exception Propagation Decker, Christian R
1999-06-07  0:00 ` dennison
1999-06-08  0:00   ` Glen
1999-06-08  0:00     ` dennison
1999-06-08  0:00     ` Robert Dewar
1999-06-09  0:00       ` Matthew Heaney
1999-06-08  0:00         ` R. Tim Coslet [this message]
1999-06-09  0:00         ` dennison
1999-06-09  0:00         ` Robert Dewar
1999-06-08  0:00     ` Decker, Christian R
1999-06-08  0:00       ` David C. Hoos, Sr.
1999-06-08  0:00       ` Robert Dewar
1999-06-09  0:00       ` dennison
1999-06-14  0:00         ` Robert A Duff
1999-06-14  0:00           ` Bryce Bardin
1999-06-14  0:00           ` dennison
1999-06-15  0:00             ` Robert A Duff
1999-06-15  0:00           ` Dale Stanbrough
1999-06-15  0:00             ` Robert A Duff
  -- strict thread matches above, loose matches on Subject: below --
2006-03-15 15:16 Exception propagation REH
2006-03-16 21:29 ` Ludovic Brenta
2006-03-16 22:19   ` REH
2006-03-16 22:51     ` Ludovic Brenta
2006-03-17  2:52       ` REH
2006-03-17 14:52         ` Georg Bauhaus
replies disabled

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