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 22:14, 20 May 2022
, 2 years ago→{{header|Dyalect}}
Line 857:
bazCallCount += 1
if bazCallCount == 1 {
throw
} else if bazCallCount == 2 {
throw
}
}
Line 873:
bar()
} catch {
@BazCall1() => print("BazzCall1 caught.")
}
calls -= 1
Line 884:
<pre>BazzCall1 caught.
BazCall2
Stack trace: ...</pre>
|