From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1901f265c928a511 X-Google-Attributes: gid103376,public Path: g2news1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!newsfeed.mathworks.com!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: new revision ada Date: 22 Jun 2004 21:26:40 +0100 Organization: Pushface Sender: simon@smaug.pushface.org Message-ID: References: NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1087936294 10344 62.49.19.209 (22 Jun 2004 20:31:34 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Tue, 22 Jun 2004 20:31:34 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Xref: g2news1.google.com comp.lang.ada:1790 Date: 2004-06-22T21:26:40+01:00 List-Id: Brian May writes: > If you want to try to recover from an error condition (as opposed to > simply displaying/logging an error and failing) you often need to > have detailed information on what was going on when the error > occurred. > > eg. ENGINE_FAILED(Number=>1, RPM=>xxxx, > Occurred=>After_Switching_Fuel_Tanks) is a lot more informative then > ENGINE_FAILURE and allows some sort of recovery process (eg. switch > back to the previous fuel tank) instead of trying to guess > information that was already known. (disclaimer: I haven't written > such an application...) This is fairly top-of-the-head stuff, but .. if you have an engine management system, you had better design it to cope with engine failure too. I just don't believe that a simple out-of-band thing like an exception (even if decorated like this) can possibly provide a mechanism for dealing with complex application-level handling of error conditions. If the engine fails while you're at the end of the runway, that's one thing; if it fails mid-Atlantic that's quite another. -- Simon Wright 100% Ada, no bugs.