[progress Communities] [progress Openedge Abl] Forum Post: Re: Stop Executing Legacy Code

  • Thread starter Thread starter Matt Baker
  • Start date Start date
Status
Not open for further replies.
M

Matt Baker

Guest
I tried to stay out of this...but I can't. Please...don't do that. You'll just tangle it even more, and have to fix even more bad code..."later". If you're going about adding checks against global flags...just use exceptions. There's no easy fix. But there are correct fixes. The correct fix, is to throw an exception; It will unwind the stack and back out the transaction properly. Find all the places where this procedure is called, and add catch block to either handle it or sprinkle undo, throw where needed.

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