Try-Catch online help

Within the Julia REPL I typed ?try.

I found no reference to the finally clause. Same for ?catch.

Typing ?finally does give information but the help on try should inform the user that the finally option exists.

Then when preparing this post, I came across another post which discusses else in the catch block. Something I did not know exists.

I am posting this so that someone more knowledgeable than I can update the help.

2 Likes

https://docs.julialang.org/en/v1/manual/control-flow/#Exception-Handling

Here you go!

I submitted a pull request: document `finally` in `try/catch` by stevengj · Pull Request #54269 · JuliaLang/julia · GitHub

6 Likes