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 18:06, 11 May 2015
, 9 years ago→{{header|Sidef}}: minor fix
m (Added the Sidef language) |
m (→{{header|Sidef}}: minor fix) |
||
Line 2,239:
func foo {
[0, 1].each { |
try { bar(
catch { |_, msg|
msg ~~ /^U0/ ? say "Function foo() caught exception U0"
|