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.7 required=5.0 tests=BAYES_00,INVALID_DATE, MSGID_SHORT,REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: utzoo!mnetor!uunet!nbires!hao!gatech!gitpyr!tynor From: tynor@pyr.gatech.EDU (Steve Tynor) Newsgroups: comp.lang.ada Subject: Complaint re: exception handling Message-ID: <5084@pyr.gatech.EDU> Date: 26 Feb 88 21:21:36 GMT Reply-To: tynor@pyr.UUCP (Steve Tynor) Organization: Georgia Institute of Technology References: List-Id: In all the discussion I've seen regarding deficiencies in Ada, I've never heard anyone complain that it is not possible to determine the type of an exception being handled by a 'when others' handler. I believe the Telesoft compiler provides a package that defines a variable which is set at exception time so the user can report the exception. Why doesn't the Ada standard provide this? It would be extremely useful for debugging complex exception generating code. For example: ... exception when others => PUT_LINE ("### ERROR: Unexpected exception: " & EXCEPTION_NAME & " encountered in PROCEDURE_A"); =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= No problem is so formidable that you can't just walk away from it. Steve Tynor Georgia Instutute of Technology ...{akgua, allegra, amd, harpo, hplabs, ihnp4, masscomp, ut-ngp, rlgvax, sb1, uf-cgrl, unmvax, ut-sally} !gatech!gitpyr!tynor