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 01:13, 14 April 2024
, 2 months ago→{{header|langur}}
Alextretyak (talk | contribs) m (→{{header|11l}}: X.throw) |
Langurmonkey (talk | contribs) |
||
Line 2,074:
val .U1 = h{"msg": "U1"}
val .baz =
val .bar =
val .foo =
for .i in [0, 1] {
.bar(.i)
catch {
if _err
writeln "caught .U0 in .foo()"
} else {
Line 2,090:
}
.foo()
</syntaxhighlight>
{{out}}
|