Hi,
Usual JScript exceptions can be handled with the 'try..catch' block without any problems. The error you get can be caused not only by the JScript engine natively, and therefore, it is possible that is does not contain a description. To check this, use the Evaluate dialog. Set a breakpoint within the 'catch' block:
Log.Error("Exception", exception.description);
When the execution is stopped at this line, open the Evaluate dialog (Ctrl-F12), type 'exception' in the 'Expression' field, and click 'Evaluate'. When the '[Object]' text appears in the 'Results' box, click 'Inspect' to see methods and properties of the 'exception' object. Please let me know your results.
A possible solution to the 'This operation returned because the timeout period expired.' error you've faced is increasing the value of the "Method invoke timeout" setting to 10000 ms. To learn about this setting, please see the
Project Properties - General Open Applications Options help topic.
Let me know whether this helps.