comp.lang.ada
 help / color / mirror / Atom feed
From: tynor@pyr.gatech.EDU (Steve Tynor)
Subject: Complaint re: exception handling
Date: 26 Feb 88 21:21:36 GMT	[thread overview]
Message-ID: <5084@pyr.gatech.EDU> (raw)


In all the discussion I've seen regarding deficiencies in Ada, I've never
heard anyone complain that it is not possible to determine the type of an
exception being handled by a 'when others' handler.

I believe the Telesoft compiler provides a package that defines a variable
which is set at exception time so the user can report the exception. 

Why doesn't the Ada standard provide this?  It would be extremely useful for
debugging complex exception generating code. For example:

     ...
     exception
	    when others =>
	       PUT_LINE ("### ERROR: Unexpected exception: " & EXCEPTION_NAME &
			 " encountered in PROCEDURE_A");


=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
No problem is so formidable that you can't just walk away from it.
                     
    Steve Tynor
    Georgia Instutute of Technology

 ...{akgua, allegra, amd, harpo, hplabs,
     ihnp4, masscomp, ut-ngp, rlgvax, sb1,
     uf-cgrl, unmvax, ut-sally}  !gatech!gitpyr!tynor

                 reply	other threads:[~1988-02-26 21:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
replies disabled

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