From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,79bbf7e359159d0d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-04-04 21:26:08 PST Path: supernews.google.com!sn-xit-03!supernews.com!cyclone2.usenetserver.com!news-out.usenetserver.com!news-east.rr.com!news.rr.com!chnws02.mediaone.net!chnws06.ne.mediaone.net!24.128.8.202!typhoon.ne.mediaone.net.POSTED!not-for-mail Subject: Re: newbie can't get exceptions to work! From: Ed Falis Newsgroups: comp.lang.ada Message-ID: References: <3ACBE436.4B247767@nmt.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Newsreader: Pineapple News 0.8.11 [SKYLAB BETA], BeOS (Intel) 5.0.3 X-Program-URL: http://www.concentric.net/~brunsona/pineapplenews.html Date: Thu, 05 Apr 2001 04:25:40 GMT NNTP-Posting-Host: 66.31.217.141 X-Complaints-To: abuse@mediaone.net X-Trace: typhoon.ne.mediaone.net 986444740 66.31.217.141 (Thu, 05 Apr 2001 00:25:40 EDT) NNTP-Posting-Date: Thu, 05 Apr 2001 00:25:40 EDT Organization: Road Runner Xref: supernews.google.com comp.lang.ada:6491 Date: 2001-04-05T04:25:40+00:00 List-Id: Jeff Shipman wrote: > Ok, I'm creating a generic stack package and I think > I've done everything properly, but I cannot seem to > get my STACK_EXCEPTION to work. This is what it > looks like in my gen_stack.ads file: The following line in the error messages is the key: use_gen_stack.adb:214:12: multiple use clauses cause hiding Each instantiation of the stack package that you made created a different exception Stack_Error. The compiler can't tell which one you intend to handle. Either set up the exception handler with a choice list using the fully qualified names: when Inst_1.Stack_Error | Inst_2.Stack_Error => -- etc, listing all of them or just use a "when others => " choice. - Ed