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=-0.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,951a3a1a55d59148,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-05-11 06:28:16 PST Path: archiver1.sj.google.com!newsfeed.google.com!newsfeed.stanford.edu!skynet.be!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news.csl-gmbh.net!newsfeed2.news.nl.uu.net!sun4nl!reader1.news.nl.uu.net!not-for-mail From: serious@clerk.com (Noam Kloos) Newsgroups: comp.lang.ada Subject: error recovery Date: Fri, 11 May 2001 13:30:22 GMT Organization: Interspective Internet Services Message-ID: <3afbe7e2.191078067@news.nl.uu.net> Reply-To: serious@clerk.com NNTP-Posting-Host: lando.interspective.nl X-Trace: porthos.nl.uu.net 989587695 25950 193.78.225.114 (11 May 2001 13:28:15 GMT) X-Complaints-To: abuse@nl.uu.net NNTP-Posting-Date: 11 May 2001 13:28:15 GMT X-Newsreader: Forte Free Agent 1.21/32.243 Xref: archiver1.sj.google.com comp.lang.ada:7390 Date: 2001-05-11T13:28:15+00:00 List-Id: Hello, I have written a small program and I don't like the exeception handlling; Normally when Name_Error my program creates the missing file. But after exception has been raised the program ends. So my way to do it was; when Name_Error; Create File, call the program itself. I get a possible infinite recursion warning, but wont get storage error while the action can occur only once. This is my way to do error recovery (something that belongs to OOPS) http://www.noam.nl/ada95/action.zip Is there a better way to realise error recovery in Ada? Noam.