Quantcast
Channel: Adobe Community : Popular Discussions - Photoshop Scripting
Viewing all articles
Browse latest Browse all 12244

No exception object in catch???

$
0
0

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.


Viewing all articles
Browse latest Browse all 12244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>