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

(→‎{{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 .err_err["msg"] == .U0["msg"] {
writeln "caught .U0 in .foo()"
} else {
890

edits