I have the following catch block in the outermost function in a script.
| } catch(err) { | ||
| restoreOriginalSettings (); | ||
| throw err; | ||
| } |
When one of my testers runs the script he gets "Error 54: Uncaught Javascript exception: No such element. Line 399 throw err." where line 399 is the throw err statement. I assume "No such element" means that the exception object err does not exist. How can I be in a catch without an exception object? I must be missing something but I don't know what. I suppose I can wrap the throw err statement in a try/catch and swallow the exception but that does not feel right. Any suggestions? Thanks.