blob: 4572b9aa6b5406b611b98ae1b394e9741706a808 (
plain) (
tree)
|
|
import java.io.IOException;
object Test {
//def error[a](x: String):a = new java.lang.RuntimeException(x) throw;
def main(args: Array[String]): Unit = {
try {
try {
Console.println("hi!")
sys.error("xx")
}
finally Console.println("ho!")
}
catch {
case ex: IOException => Console.println("io exception!");
case ex => Console.println(ex);
}
}
}
|