blob: 0bf40bb4cc6e46af7522dc96c61c397dbef3fd94 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
object F {
type AnyClass = Class[_]
def tryf[T](ignore: List[AnyClass])(f: => T): Any = {
try {
f
} catch {
case e if ignore == null || ignore.isEmpty => {false}
}
}
}
|