Forum Discussion
oychw
15 years agoContributor
Allen:
thank you very much!
I use JScript. Could JScript raise an Exception in a function and catch the Exception in an upper function (such as function 1 calls function 2.function 2 raise an Exception,and we catch the Exception in function 1).
Hi rongzhong,
The syntax you need depends on the scripting language you use:
DelphiScript: see the "DelphiScript - Exception Handling" (http://www.automatedqa.com/support/viewarticle/?aid=13279) help topic.
JScript: see the http://msdn.microsoft.com/en-us/library/85fscz6h(VS.85).aspx MSDN Library article.
VBScript: see the http://msdn.microsoft.com/en-us/library/sbf5ze0e(VS.85).aspx MSDN Library article.
Best regards,
Allen
AutomatedQA Support Team
thank you very much!
I use JScript. Could JScript raise an Exception in a function and catch the Exception in an upper function (such as function 1 calls function 2.function 2 raise an Exception,and we catch the Exception in function 1).
Hi rongzhong,
The syntax you need depends on the scripting language you use:
DelphiScript: see the "DelphiScript - Exception Handling" (http://www.automatedqa.com/support/viewarticle/?aid=13279) help topic.
JScript: see the http://msdn.microsoft.com/en-us/library/85fscz6h(VS.85).aspx MSDN Library article.
VBScript: see the http://msdn.microsoft.com/en-us/library/sbf5ze0e(VS.85).aspx MSDN Library article.
Best regards,
Allen
AutomatedQA Support Team
Related Content
- 5 years ago
Recent Discussions
- 2 days ago
- 2 days ago
- 5 days ago