编译过程中的意外异常处理
2022-09-04 02:40:15
我遇到了以下方法,令我惊讶的是,它编译得很好:
private String getControlMessageBlocking() throws ProtocolException,
InterruptedException, IOException {
try {
// <Code that may throw any of the three listed exceptions>
return controlMessage;
} catch (Exception e) {
throw e;
}
}
为什么不一定要抓住呢?Exception