Skip to content

Commit aaf80cf

Browse files
authored
Update try-catch-finally example
1 parent f15e8c9 commit aaf80cf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/tutorials/condition-and-loops-in-sequence-diagrams.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ if (x) {
4747
And yes, we have try/catch/finally to make it even more programming like.
4848

4949
```zenuml title=try catch finally
50-
try { A -> B}
51-
catch {
52-
new Error
53-
}
54-
finally {
50+
try {
51+
A -> B.DoSomething()
52+
} catch (Exception e) {
53+
new Error(e)
54+
} finally {
5555
A.close()
5656
}
5757
```

0 commit comments

Comments
 (0)