comp.lang.ada
 help / color / mirror / Atom feed
From: "Mike Silva" <mjsilva@jps.net>
Subject: Re: JOB:Sr. SW Engineers Wanted-Fortune 500 Co
Date: 2000/02/04
Date: 2000-02-04T00:00:00+00:00	[thread overview]
Message-ID: <uwJm4.1021$dw3.54085@news.wenet.net> (raw)
In-Reply-To: t7oga04o4v.fsf@calumny.jyacc.com

Since nobody else has answered your question I didn't want to let it go
without a try.  The general approach, whether via built-in or hand-coded
exception handling, is to try to continue to supply best-guess results.  If
you think of a given chunk of software as a black box with some input, some
output, and a red "Exception!" light on it, the idea is that when the red
light goes on you try to stick something useful in the output even if you
don't know where in the box the problem lies.  This something useful could
be predetermined data, or previous-pass data, or perhaps data from another
process which is good enough to limp along on.  Or perhaps you switch to
another mode which doesn't require the output of the failed "box".  At the
same time you can try to re-initialize any hardware associated with the box
(e.g. I've seen LCD displays that sometimes go out to lunch and need to be
coaxed back into a working electrical state via re-initialization).  The
possibilities are endless, depending on the hardware and the software
functional breakdown, but quite often you can think of something useful to
do, especially in the short term (in the case that the hardware just had a
momentary hiccup).

To extend the safety belt analogy, you add collapsible steering columns and
safety glass windows even though the safety belt will never allow you to hit
the wheel or the windows.

Mike

Hyman Rosen wrote in message ...
>kilgallen@eisner.decus.org (Larry Kilgallen) writes:
>> And some small fraction of automobile collision victims who are not
wearing
>> safety belts are "thrown clear".  Exceptional cases do get more press.
>
>I am clearly in need of enlightenment, so please explain to me. After
>you have decided that a given situation is impossible, will you
>nevertheless add an error handler for that impossible situation, so
>that if it happens anyway, you can recover gracefully? To what level
>of detail and impossibility will you go? When you write Ada code, how
>many exception handlers for Program Error do you put into your code?






  parent reply	other threads:[~2000-02-04  0:00 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-01-30  0:00 JOB:Sr. SW Engineers Wanted-Fortune 500 Co Tracy Goembel
2000-01-31  0:00 ` Ted Dennison
2000-01-31  0:00   ` Hyman Rosen
2000-01-31  0:00     ` Hyman Rosen
2000-02-01  0:00       ` Gautier
2000-01-31  0:00         ` Hyman Rosen
2000-02-01  0:00       ` Ted Dennison
2000-02-01  0:00         ` Hyman Rosen
2000-02-02  0:00           ` Rod Chapman
     [not found]           ` <m3emaug917.fsf@blight.transcend.org>
2000-02-03  0:00             ` Larry Kilgallen
2000-02-01  0:00         ` Ole-Hjalmar Kristensen
2000-02-01  0:00       ` Scott Ingram
2000-01-31  0:00     ` Mike Silva
2000-02-01  0:00       ` Hyman Rosen
2000-02-01  0:00         ` Mike Silva
2000-02-01  0:00           ` Hyman Rosen
2000-02-01  0:00           ` Larry Kilgallen
2000-02-01  0:00         ` Pat Rogers
2000-02-01  0:00           ` Hyman Rosen
2000-02-01  0:00             ` Mike Silva
2000-02-01  0:00             ` Pat Rogers
2000-02-01  0:00               ` Larry Kilgallen
2000-02-01  0:00               ` Hyman Rosen
2000-02-01  0:00                 ` Pat Rogers
2000-02-01  0:00                   ` Richard D Riehle
2000-02-01  0:00                     ` Hyman Rosen
2000-02-02  0:00                       ` Richard D Riehle
2000-02-17  0:00                         ` Charles Hixson
2000-02-01  0:00             ` Larry Kilgallen
2000-02-01  0:00               ` Hyman Rosen
2000-02-02  0:00                 ` Ole-Hjalmar Kristensen
2000-02-02  0:00                 ` Roger Racine
2000-02-04  0:00                 ` Mike Silva [this message]
2000-02-17  0:00                 ` Charles Hixson
2000-02-05  0:00           ` JP Thornley
2000-01-31  0:00     ` Mike Silva
2000-02-01  0:00     ` Jean-Pierre Rosen
2000-02-01  0:00       ` Larry Kilgallen
2000-02-01  0:00       ` Ted Dennison
2000-02-01  0:00         ` Karel Thoenissen
     [not found]           ` <879hjf$ggv$1@nnrp1.deja.com>
2000-02-02  0:00             ` Geography (was: JOB:Sr. SW Engineers Wanted-Fortune 500 Co) Jean-Marc Bourguet
2000-02-02  0:00             ` Karel Thoenissen
2000-02-02  0:00               ` Ted Dennison
2000-02-02  0:00                 ` Gautier
replies disabled

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