From: "RWTMS1::SSEVAX::GRAZIANIA"
Subject: Determining exception name in DEC Ada
Date: 1995/04/06
Date: 1995-04-06T00:00:00+00:00 [thread overview]
Message-ID: <INFO-ADA%95040611415951@VM1.NODAK.EDU> (raw)
Using DEC Ada on VAX/VMS systems, is there a way to determine which
exception has occurred without having to specifically trap it within the
exception handler.
For example, I'd like to be able to do something like:
begin
[blah]
[blah]
[blah]
exception
when others =>
text_io.put_line ("A " & exception_name & " has occurred.");
end;
I don't want to have to do something like:
begin
[blah]
[blah]
[blah]
exception
when constraint_error =>
text_io.put_line ("A constraint_error has occurred.");
when numeric_error =>
text_io.put_line ("A numeric_error has occurred.");
when program_error =>
text_io.put_line ("A program_error has occurred.");
when others =>
text_io.put_line ("A exception occurred and I have no idea which one.");
end;
Thanks in advance.
Alain Graziani
graziani%rwtms1.ssevax.decnet@consrt.rockwell.com
"I feel the need for speed."
International Space Station Alpha
Rocketdyne Division
Rockwell International
next reply other threads:[~1995-04-06 0:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-04-06 0:00 RWTMS1::SSEVAX::GRAZIANIA [this message]
1995-04-07 0:00 ` Determining exception name in DEC Ada DavPatrick
1995-04-07 0:00 ` DavPatrick
-- strict thread matches above, loose matches on Subject: below --
1995-04-07 0:00 Ken Balmy
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox