comp.lang.ada
 help / color / mirror / Atom feed
* Complaint re: exception handling
@ 1988-02-26 21:21 Steve Tynor
  0 siblings, 0 replies; only message in thread
From: Steve Tynor @ 1988-02-26 21:21 UTC (permalink / 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1988-02-26 21:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1988-02-26 21:21 Complaint re: exception handling Steve Tynor

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