comp.lang.ada
 help / color / mirror / Atom feed
* Common Error/Exception Handler
@ 1996-04-19  0:00 John Cupak
  1996-04-19  0:00 ` Robert A Duff
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: John Cupak @ 1996-04-19  0:00 UTC (permalink / raw)
  To: jcupak

I have observed that non-Ada programmers tend to create a "constant" error
number header file or package, and then use that constant to write/display the
corresponding error message. Ada programmers, however, tend to use "packaged"
exceptions, raise the exception where/when appropriate, and "handle" the
exception in an exception handler.

Wouldn't it be possible with the Ada 95 exception mechanisms to create a
package of standard exceptions and a common error message procedure,
import/rename the exceptions where appropriate, and let the common error
message procedure take care of the details? 

Inquiring minds want to know!

-- 
John J. Cupak, Jr., CCP     Internet       : jcupak@isd99.sanders.lockheed.com
Lockheed Sanders, Inc.      Lockheed LAN   : jcupak@mailgw.sanders.lockheed.com
95 Canal Street/MER15-2403  Lockheed DECNet: NHQVAX::CUPAK 
Nashua, NH 03061-0868       Work Telephone : 603 885-2142 FAX: 603 885-1480





^ permalink raw reply	[flat|nested] 14+ messages in thread
* Re: Common Error/Exception Handler
@ 1996-04-24  0:00 tmoran
  0 siblings, 0 replies; 14+ messages in thread
From: tmoran @ 1996-04-24  0:00 UTC (permalink / raw)


In <gauthier-2404961547320001@164.81.60.62> Michel Gauthier asked:
>FUNDAMENTAL QUESTION : is tracing of exceptions really useful ?
If by tracing you mean a stack trace of what called what where,
my answer is YES.




^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~1996-05-10  0:00 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-04-19  0:00 Common Error/Exception Handler John Cupak
1996-04-19  0:00 ` Robert A Duff
1996-04-22  0:00   ` Laurent Guerby
1996-04-22  0:00   ` John Cupak
1996-04-23  0:00 ` Michel Gauthier
1996-04-24  0:00 ` Michel Gauthier
1996-05-04  0:00   ` LJMetzger
1996-05-04  0:00     ` Theodore E. Dennison
1996-05-08  0:00       ` John English
1996-05-10  0:00         ` Theodore E. Dennison
1996-05-09  0:00   ` Jon S Anthony
1996-05-10  0:00     ` John English
1996-05-10  0:00       ` Robert A Duff
  -- strict thread matches above, loose matches on Subject: below --
1996-04-24  0:00 tmoran

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox