File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -1463,13 +1463,15 @@ fun main() = runBlocking<Unit> {
1463
1463
1464
1464
A "Caught ..." message is not printed despite there being a ` catch ` operator:
1465
1465
1466
- <!-- - TEST EXCEPTION
1466
+ ``` text
1467
1467
Emitting 1
1468
1468
1
1469
1469
Emitting 2
1470
1470
Exception in thread "main" java.lang.IllegalStateException: Collected 2
1471
1471
at ...
1472
- -->
1472
+ ```
1473
+
1474
+ <!-- - TEST EXCEPTION -->
1473
1475
1474
1476
#### Catching declaratively
1475
1477
@@ -1510,12 +1512,14 @@ fun main() = runBlocking<Unit> {
1510
1512
Now we can see that a "Caught ..." message is printed and so we can catch all the exceptions without explicitly
1511
1513
using a ` try/catch ` block:
1512
1514
1513
- <!-- - TEST EXCEPTION
1515
+ ``` text
1514
1516
Emitting 1
1515
1517
1
1516
1518
Emitting 2
1517
1519
Caught java.lang.IllegalStateException: Collected 2
1518
- -->
1520
+ ```
1521
+
1522
+ <!-- - TEST EXCEPTION -->
1519
1523
1520
1524
### Flow completion
1521
1525
You can’t perform that action at this time.
0 commit comments