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.9 required=5.0 tests=BAYES_05,FREEMAIL_FROM, INVALID_MSGID,LOTS_OF_MONEY,PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,436ac666600e5ab3 X-Google-Attributes: gid103376,public From: "Antonio Dur�n Dom�nguez" Subject: RE: Exception Handling Date: 2000/05/30 Message-ID: #1/1 X-Deja-AN: 629642920 References: <3HCY4.29157$sB3.10828@news.indigo.ie> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Complaints-To: usenet@teleline.es X-Trace: telenews.teleline.es 959673883 192.101.1.126 (Tue, 30 May 2000 10:04:43 MET DST) Organization: Clientes_Teleline X-MSMail-Priority: Normal NNTP-Posting-Date: Tue, 30 May 2000 10:04:43 MET DST Newsgroups: comp.lang.ada Date: 2000-05-30T00:00:00+00:00 List-Id: I don't think that using an exception as an inconditional break is a good practice. There are better ways to achive that effect. NANCY HEHIR escribi� en el mensaje de noticias 3HCY4.29157$sB3.10828@news.indigo.ie... > The Ada language reference manual (chapter 11) indicates that when an > exception is raised the main body of code is abandoned and that if code > exists for handling the exception then this is executed. > > Is it possible to use the exception handler to return to the main body at a > point before the point where the exception is raised? > > For example: If I prompt for a keyboard input of ,say an eight character > string, and a seven char string is actually inputted, a Constraint_Error is > raised. Can I use a handling device to return the execution to the prompt > for input ? > >