Empty catch block seems to be invalid in Scala
try { func() } catch { } // error: illegal start of simple expression
How I can catch all
Inside of Scala's catch block you need to use similar construct as in a match statement:
try { func() } catch { case _: Throwable => // Catching all exceptions and not doing anything with them }