Anonymous user
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:33, 8 March 2022
, 2 years ago→{{header|Dyalect}}
(Added Quackery.) |
|||
Line 857:
bazCallCount += 1
if bazCallCount == 1 {
throw
} else if bazCallCount == 2 {
throw
}
}
Line 873:
bar()
} catch {
}
calls -= 1
}
}
foo()</lang>
{{out}}
<pre>
Unhandled exception. Runtime exception Dy601:
Stack trace: ...</pre>
|