From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.5-pre1 Date: 2 Dec 92 05:57:32 GMT From: ucivax!gateway@ucbvax.Berkeley.EDU (Kenneth Anderson) Subject: Re: Exception'IMAGE in Ada9X? Message-ID: <9212012156.aa09961@Paris.ics.uci.edu> List-Id: In comp.lang.ada you write: >In an article kanderso@liege.ICS.UCI.EDU (Kenneth Anderson) writes: >> >Ask, and ye shall receive... >Turning to my trusty 9X Mapping Rationale (4.1 for you other >reviewers out there -- if my info is dated, please shout): >the example actually goes like this: >... >begin >... >exception > when E : others => > -- Unhandled exception; log it > Put(Log_File, > "Unknown error in task Some_Task: " > & System.Exception_Name(E) > & System.Exception_Information(E)); > ... -- Reset data structures as necesary. >end; >... >There's also talk of a third goodie, a type called Exception_Occurrence. >This type can provide other useful tidbits like stack-traces. >Pay careful attention to the different syntax in the "when" clause, >cuz it ain't no typo! This gives us a variable name for our exception, >which is used when we call Exception_Name. >Hope this helped. Thanks. If only we had this feature now! Well, this gives me yet another reason to look forward to Ada9X!! Thanks for the quick response, >dgw Ken