- Christopher Craft
- PowerBuilder
- Thursday, 20 February 2020 05:21 PM UTC
I have some code that checks for a custom object and if it doesn't exist I just trap it and continue on. The problem is everytime I run it in the PB IDE it will throw an exception error. If it is running in the EXE then the error is trapped correctly. Does the PB IDE not abide by the TRY-CATCH rules? Following is my code with the error I receive in the IDE:
TRY
nvoCustomWF = CREATE USING "v_custom_workflow"
CATCH (throwable e1)
// Catch error if object does not exist so the SystemError event does not fire!
FINALLY
// If Not Valid then set Shared Variable to NO so we don't try again!
IF NOT IsValid(nvoCustomWF) THEN
sbCreateCustomWF = FALSE
END IF
END TRY
Chris Craft
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.