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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable 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 22:38:06 PST Path: supernews.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!fr.usenet-edu.net!usenet-edu.net!enst!enst.fr!not-for-mail From: Christoph Grein Newsgroups: comp.lang.ada Subject: Re: newbie can't get exceptions to work! Date: Thu, 5 Apr 2001 07:26:29 +0200 (MET DST) Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii X-Trace: avanie.enst.fr 986448969 22745 137.194.161.2 (5 Apr 2001 05:36:08 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Thu, 5 Apr 2001 05:36:08 +0000 (UTC) To: comp.lang.ada@ada.eu.org Return-Path: Content-MD5: fO9XHSYHEzI1bY5dVGBfBg== X-Mailer: dtmail 1.2.1 CDE Version 1.2.1 SunOS 5.6 sun4u sparc Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.3 Precedence: bulk X-Reply-To: Christoph Grein List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , List-Archive: Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: supernews.google.com comp.lang.ada:6495 Date: 2001-04-05T07:26:29+02:00 package INT_STACK is new GEN_STACK(ELM => INTEGER, LEN => 10); package INT2_STACK is new GEN_STACK(ELM => INTEGER, LEN => 5); With these two instantiations, you get two exceptions STACK_ERROR: INT_STACK.STACK_ERROR and INT2_STACK.STACK_ERROR. So write: ... exception when INT_STACK.STACK_ERROR | INT2_STACK.STACK_ERROR => Handle_them; -- note that you do not need a begin end block here. end;