From a driver script invoking various business functions and sub-routines, i'm also trying to build in some error handling.
One specific error is continually generated from a business function, therfore invoking an error handling function.
My problem is, 'Resume Next' only takes the application back to where the business function failed originally. But, i want to ignore the error message, and start the driver script again from the start, from the error handler. I'm using Access, so dbMoveNext can move to the next db record.
Re: Error Handling
The QARun Command
returns the name of the currently executing script. Within your error handler, instead of using Resume Next, use
szScript = CmdLime (1) ; Get the name of the current script
Exit () ; to stop the current script
Run (szScript) ; to rerun it from the beginning
Be careful that you don't end up in a permanent loop, especially if you kick off the scripts and then leave for the weekend.
Hope this helps,