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, LOTS_OF_MONEY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,790d824907970cc3 X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: Exception Propagation Date: 1999/06/08 Message-ID: <7jk1k5$vu$1@nnrp1.deja.com>#1/1 X-Deja-AN: 487202125 References: <7jjbl4$n79$1@nnrp1.deja.com> <7jh857$ej$1@nnrp1.deja.com> <375CC549.7EDFB885@spam.com> <0nc73.5376$y6.3195132@WReNphoon3> X-Http-Proxy: 1.0 x31.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Share what you know. Learn what you don't. X-Article-Creation-Date: Tue Jun 08 21:23:28 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-06-08T00:00:00+00:00 List-Id: In article <0nc73.5376$y6.3195132@WReNphoon3>, cdecker@snet.net (Decker, Christian R) wrote: > OK, everyone is mis-understanding my question, and i apologize..... > I understand that when an exception is raised in a task that it is not > deterministic as to where the exception gets > propagated as far as being able to trap and handle it. No, that's confused, the exception is NOT propagated at all! > But as far as seeing text displayed in the console window > indicating that an > excpetion was raised should always > occur, at least in every other Ada compiler i have used. Not unconditionally certainly. Terminating a task with an unhandled exception is not an error, it is perfectly well behaved Ada semantics. You cannot justify a compiler outputting junk in some console window just because it thinks you are using a feature of Ada which you should not be! > My problem is that > i see no text, or any other indication > that an exception is being raised. I know there is an > exception because i > tested using an explicit trap to display > the error. I don't want random exception handles, i just want > to be > notified via text in the console that an > exception has occured. Then put a when others handler in your task at the outer level, dumping the exception information. Your compiler *may* have a special non-standard non-RM mode in which it treats this situation as an error, or dumps stuff to some window, but there is no requirement (or even suggestion) in the RM that such behavior is desirable, let alone required. > So with that does anyone know why i am not getting text > messages telling me an exception was raised? Because the exception was not unhandled, there is no such thing as an unhandled exception in a task, instead if no handler is found, the semantics is that the exception is silently handled, and the task terminates. Sent via Deja.com http://www.deja.com/ Share what you know. Learn what you don't.