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.4 required=5.0 tests=BAYES_50,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,deeb88b0e7eede4f,start X-Google-Attributes: gid103376,public From: rgelb@csulb.edu (Robert Gelb) Subject: Help with Exceptions! Date: 1996/05/07 Message-ID: <4mmimq$s4r@hatathli.csulb.edu>#1/1 X-Deja-AN: 153424162 organization: Cal State Long Beach newsgroups: comp.lang.ada Date: 1996-05-07T00:00:00+00:00 List-Id: I am doing a homework assignment in ADA and I am confused by the exceptions. My question is this: when I catch an error with the exception, how can I go back to statement where the error occured (or the statement next to it)? I know in Visual Basic you can do a 'resume next' statement which returns you to the statement next to the one where the error occured VB: sub test() dim x as integer on error goto ErrHandler x = 1000000 'error occurs here x = 3 'resume next returns the 'execution here Exit sub ErrHandler: resume next 'return execution end sub ADA: procedure test is x:integer; begin x:=10000000; x:=3; exception when CONSTRAINT_ERROR=> put("Error"); --how can I go back to 'x:=3' statement end test; -- Robert Gelb Senior Systems Analyst Data Express Garden Grove, California USA (714)895-8832