Exceptions/Catch an exception thrown in a nested call: Difference between revisions

Content added Content deleted
m (→‎{{header|Wren}}: Changed to Wren S/H)
Line 3,443: Line 3,443:


We can use that approach here, re-throwing the second (uncaught) exception so that it terminates the script.
We can use that approach here, re-throwing the second (uncaught) exception so that it terminates the script.
<syntaxhighlight lang="ecmascript">var U0 = "U0"
<syntaxhighlight lang="wren">var U0 = "U0"
var U1 = "U1"
var U1 = "U1"