comp.lang.ada
 help / color / mirror / Atom feed
From: "Ehud Lamm" <mslamm@mscc.huji.ac.il>
Subject: Re: error recovery
Date: Fri, 11 May 2001 17:42:40 +0300
Date: 2001-05-11T17:42:40+03:00	[thread overview]
Message-ID: <9dgu53$tas$1@news.huji.ac.il> (raw)
In-Reply-To: 9dgrea$3db$1@eol.dd.chalmers.se

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!









      reply	other threads:[~2001-05-11 14:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-11 13:30 error recovery Noam Kloos
2001-05-11 14:02 ` Staffan Dittmer
2001-05-11 14:42   ` Ehud Lamm [this message]
replies disabled

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