[progress Communities] [progress Openedge Abl] Forum Post: Re: Abl Unhandled Exceptions, Or...

  • Thread starter Thread starter cverbiest
  • Start date Start date
Status
Not open for further replies.
C

cverbiest

Guest
I agree with Mike, catch is enough, just remove distinction between errors that were deemed unsolvable and "regular" errors Maybe a bit off-topic but I think it's related. shouldn't we be able to handle errors in catch blocks and retry ? The following code does not compile but demonstrates my intent. It could also be (re-)connect a database & retry , retryblock: do on error undo, retry: output to /tmp/dirdoesnotexist/test.txt. catch e as progress.lang.error: message "caught" e:getmessage(1) update doretry as logical. if doretry then do: os-create-dir value("/tmp/dirdoesnotexist"). undo retryblock, retry . end. end. end.

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