comp.lang.ada
 help / color / mirror / Atom feed
* Array of exception
@ 2001-10-02  8:50 Lutz Donnerhacke
  2001-10-02 11:02 ` maa
  0 siblings, 1 reply; 6+ messages in thread
From: Lutz Donnerhacke @ 2001-10-02  8:50 UTC (permalink / 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;



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2001-10-04  8:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-02  8:50 Array of exception Lutz Donnerhacke
2001-10-02 11:02 ` 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

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