[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: Structured Error Handling

  • Thread starter Thread starter Laura Stern
  • Start date Start date
Status
Not open for further replies.
L

Laura Stern

Guest
Simon described it correctly. But the other thing is that a CATCH block handles the error for one iteration of an iterating block (e.g., a FOR EACH). So it will not cause the loop to end. It will undo that iteration and move on to the next iteration. Here's what you need if you want to get out of the first inner "for each" when an error happens. : for each ttdata ON ERROR UNDO, THROW : Loop1: for each ttdata2 on error undo, throw : catch e AS Progress.Lang.Error : leave Loop1. end catch. end. for each ttdata3 no-lock : end. end.

Continue reading...
 
Status
Not open for further replies.
Back
Top