comp.lang.ada
 help / color / mirror / Atom feed
From: lutz@iks-jena.de (Lutz Donnerhacke)
Subject: Array of exception
Date: Tue, 2 Oct 2001 08:50:30 +0000 (UTC)
Date: 2001-10-02T08:50:30+00:00	[thread overview]
Message-ID: <slrn9rivul.kf.lutz@taranis.iks-jena.de> (raw)

Is it possible to define an array of exceptions? I do not get it.
(subtype required)

Currently I have a list of inband-signaling-codes catched by a long case:
  case res in
     when -1 => raise EXXX;
     when -2 => raise EYYY;
     ...
  end case;

I'd like to write:
  raise myexception (res);
exception
  when Constraint_Error => return res;



             reply	other threads:[~2001-10-02  8:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-02  8:50 Lutz Donnerhacke [this message]
2001-10-02 11:02 ` Array of exception maa
2001-10-02 10:13   ` Lutz Donnerhacke
2001-10-02 20:23     ` tmoran
2001-10-03 16:25       ` Darren New
2001-10-04  8:53       ` Lutz Donnerhacke
replies disabled

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