处理语法:
try {
// ...
} catch {
case ex: Exception => {
ex.printStackTrace() // 打印到标准err
System.err.println("exception===>: ...") // 打印到标准err
}
}
处理语法:
try {
// ...
} catch {
case ex: Exception => {
ex.printStackTrace() // 打印到标准err
System.err.println("exception===>: ...") // 打印到标准err
}
}
转载于:https://www.cnblogs.com/xuejianbest/p/10285077.html