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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,92d77e0c35c0ea4e X-Google-Attributes: gid103376,public From: "Corey Ashford" Subject: Re: ADA Exception Handling Date: 1998/10/29 Message-ID: <719anr$bko$1@usenet.rational.com>#1/1 X-Deja-AN: 406248772 References: <36370fab.0@alijku02.edvz.uni-linz.ac.at> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Organization: Rational Software Newsgroups: comp.lang.ada Date: 1998-10-29T00:00:00+00:00 List-Id: Stefan Papp wrote in message <36370fab.0@alijku02.edvz.uni-linz.ac.at>... >Hello, > >I am currently working on a project on Ada reengineering. My duty is to find >out, whether it is possible to presentate exception in Ada graphically. I would >be very happy, if somebody could give me some hints on ADA exceptions. What sort of graphical representation do you have in mind? I can see something like illustrating the call graph of a particular application with exception raising points and their handlers. Did you have something else in mind? > > >As I am not an ADA programmer I have no real experience in ADA exceptions. Is >it possible to compare the ADA exception handling to the e.h. from c++ or JAVA? > Yes. The main difference is that in C++ or Java, the programmer throws and catches objects of any type, whereas in Ada, h programmer throws only something of the predefined type "exception", and the handlers that catch the exception must catch it by its name rather than by its type. Dynamically, however, the concept is similar. The details are a bit different. For example, in C++, an exception can be reraised from outside the exception handler (a.k.a catch block) - for example in a function which is called by the handler. This isn't possible in Ada. On the other hand, C++ doesn't have built-in tasking and so doesn't have to deal with the complications of exceptions being raised during a rendezvous with another task. Hope this gets you started. - Corey >Could anyone tell, if there is something special I need to know about ADA >excpetions? > >Thank you > >Stefan Papp >