Docs tell that one could create user-defined exception types simply subtyping
Exception. But how to use those? In other languages we can use multiple
catch clauses. Doesn’t Julia have ones?
struct MyEx <: Exception end try # ... catch (ex :: MyEx) println("My exception") catch println("Any other exception") end