Empty catch block seems to be invalid in Scala
try { func() } catch { } // error: illegal start of simple expression
How I can catch all
I like one of the suggestions here to use Try() with toOption, but in case you don't want to go further with Option, you can just do:
Try()
toOption
Try(func()) match { case Success(answer) => continue(answer) case Failure(e) => //do nothing }