comp.lang.ada
 help / color / mirror / Atom feed
From: John Cupak <jcupak@isd99.sanders.lockheed.com>
To: jcupak
Subject: Common Error/Exception Handler
Date: 1996/04/19
Date: 1996-04-19T00:00:00+00:00	[thread overview]
Message-ID: <4l8d5i$31g@news.sanders.lockheed.com> (raw)

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





             reply	other threads:[~1996-04-19  0:00 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-04-19  0:00 John Cupak [this message]
1996-04-19  0:00 ` Common Error/Exception Handler Robert A Duff
1996-04-22  0:00   ` John Cupak
1996-04-22  0:00   ` Laurent Guerby
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
replies disabled

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