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=-0.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, FREEMAIL_REPLY autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,61e9062c1f23b9d5 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: contracted exceptions Date: Mon, 11 Jun 2007 20:50:05 +0100 Organization: Pushface Message-ID: References: <1181165630.012508.55290@i38g2000prf.googlegroups.com> <19fxsxv1god43$.1pqq8vgfu2itn$.dlg@40tude.net> <1it2vtizha2fi$.jxnoaxmm9sop$.dlg@40tude.net> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1181591405 21271 62.49.19.209 (11 Jun 2007 19:50:05 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Mon, 11 Jun 2007 19:50:05 +0000 (UTC) Cancel-Lock: sha1:Psu8G7DTLzThNuTLPm1yAOW3jIA= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.95 (darwin) Xref: g2news1.google.com comp.lang.ada:16163 Date: 2007-06-11T20:50:05+01:00 List-Id: "Bob Spooner" writes: > "Simon Wright" wrote in message > news:m27iqd8g04.fsf@mac.com... >> ... I agree that an exception message isn't of any use to the end >> user (I suppose they may grow to learn that some messages happen >> because of particular sequences of operations, and to avoid those >> sequences). > The exception message may be of use if it says that the problem is a > missing data file that the user forgot to provide. With GNAT, the exception message would be something like ... NAME_ERROR ... which isn't a lot of help! If the programmer can go to the trouble of reporting the missing file name, then he has quite likely considered some sort of recovery mechanisms. I was thinking of the sort of exception that hadn't been planned for.