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

m
m (Added the Sidef language)
m (→‎{{header|Sidef}}: minor fix)
Line 2,239:
 
func foo {
[0, 1].each { |booli|
try { bar(booli) }
catch { |_, msg|
msg ~~ /^U0/ ? say "Function foo() caught exception U0"
2,747

edits