Open Michael2109 opened 6 years ago
try # do something catch case foo: FooException => handleFooException(foo) case bar: BarException => handleBarException(bar) case _: Throwable => println("Got some other kind of exception") finally # do something