P
piamaria
Guest
I try to implement error handling with exceptions in 11.32 My problem is that it looks like the error continues to exist after it has been handled in the catch. I run the code below in the procedure editor. I get an alertbox with the error. I did not expect that because I caught the error inte catch. Also I get the alertbox 3 times! Can anyone explain why? ROUTINE-LEVEL ON ERROR UNDO, THROW. DEFINE TEMP-TABLE ttTest NO-UNDO FIELD id AS CHARACTER FIELD test-name AS CHARACTER INDEX i-ttTest-1 IS PRIMARY UNIQUE id. DO ON ERROR UNDO, LEAVE: CREATE ttTest. ASSIGN ttTest.id = "1" ttTest.test-name = "2". RELEASE ttTest. CREATE ttTest. ASSIGN ttTest.id = "1" ttTest.test-name = "2". RELEASE ttTest. CATCH procerror AS Progress.Lang.ProError: DISP "Inside catch". END CATCH. FINALLY: DISP "Inside finally". END FINALLY. END.
Continue reading...
Continue reading...