Jump to content

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

m
→‎{{header|langur}}: added curly braces to catch for clarity
m (syntax highlighting fixup automation)
m (→‎{{header|langur}}: added curly braces to catch for clarity)
Line 1,973:
for .i in [0, 1] {
.bar(.i)
catch if _err["msg"] == .U0["msg"] {
if _err["msg"] writeln "caught== .U0["msg"] in .foo()"{
} else { writeln "caught .U0 in .foo()"
} else throw{
} throw
}
}
}
}
973

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.