Exceptions/Catch an exception thrown in a nested call: Difference between revisions
Exceptions/Catch an exception thrown in a nested call (view source)
Revision as of 15:08, 27 January 2020
, 4 years ago→{{header|langur}}: .err to _err
Langurmonkey (talk | contribs) (→{{header|langur}}: .err to _err) |
|||
Line 1,918:
There is no explicit try block.
Note that 0.7.0 changed the implicit exception variable from .err to _err.
<lang langur>val .U0 = h{"msg": "U0"}
Line 1,928 ⟶ 1,930:
for .i in [0, 1] {
.bar(.i)
catch if
writeln "caught .U0 in .foo()"
} else {
|