Forum Discussion
tristaanogre
14 years agoEsteemed Contributor
The try/catch logic will only fire if there is some sort of exception generated. However, in your code, if the node doesn't exist, it won't generate an error. In order to hit your catch block, you'll need to "throw" an error.
Related Content
- 5 years ago
Recent Discussions
- 2 days ago