blob: 826ecd841ecc49947655dee0b882de63bc6f447e (
plain) (
blame)
1
2
3
4
5
6
7
8
|
object Test extends App {
val foos = (1 to 1000).toSeq
try
foos.par.map(i => if (i % 37 == 0) sys.error("i div 37") else i)
catch {
case ex: RuntimeException => println("Runtime exception")
}
}
|