srini_g_vasan
12 years agoOccasional Contributor
How can I propogate the error or exception
Team,
I did turn off stop on error setting ..
Now I m not sure how to handle exceptions or error by propogating the exception in method call stack. In java script looks like there is no way to throw exception from one method to another. all thrown exception needs to be handled in the same method
So how can i now report the calling method that something unexpected occured ?
Please advise.
Thanks.
Srini
I did turn off stop on error setting ..
Now I m not sure how to handle exceptions or error by propogating the exception in method call stack. In java script looks like there is no way to throw exception from one method to another. all thrown exception needs to be handled in the same method
So how can i now report the calling method that something unexpected occured ?
Please advise.
Thanks.
Srini
- Some of us discussed this last year in the General Discussions under title "Exception handling: Change from JScript to Delphiscript?"
http://smartbear.com/forums/f81/t83680/exception-handling-change-from-jscript-to-del/#83718
In essence, you can trap errors using functions, but at the price of adding a bunch of extra code. I eventually dropped the trapping approach because it added a lot of clutter and went with return codes.