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,951a3a1a55d59148 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-05-11 07:51:04 PST Path: archiver1.sj.google.com!newsfeed.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!logbridge.uoregon.edu!news.huji.ac.il!not-for-mail From: "Ehud Lamm" Newsgroups: comp.lang.ada Subject: Re: error recovery Date: Fri, 11 May 2001 17:42:40 +0300 Organization: The Hebrew University of Jerusalem Message-ID: <9dgu53$tas$1@news.huji.ac.il> References: <3afbe7e2.191078067@news.nl.uu.net> <9dgrea$3db$1@eol.dd.chalmers.se> NNTP-Posting-Host: di2-88.dialin.huji.ac.il X-Trace: news.huji.ac.il 989592548 30044 132.64.12.88 (11 May 2001 14:49:08 GMT) X-Complaints-To: abuse@news.huji.ac.il NNTP-Posting-Date: Fri, 11 May 2001 14:49:08 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Xref: archiver1.sj.google.com comp.lang.ada:7396 Date: 2001-05-11T17:42:40+03:00 List-Id: What you do is put the code that may raise an exception inside a blok, and since you want to try again, put the block inside a loop. This is a standard idiom, and you can see how it is used by checking the code examples on Adapower (http://www.adapower.com/lang/safeio.html is an example of mine that does almost nothing except catch exceptions :-) check the "get" routine). -- Ehud Lamm mslamm@mscc.huji.ac.il http://purl.oclc.org/NET/ehudlamm <== Me!