should be `case t: Throwable`, otherwise there will be a compiler warning.