我遇到了以下方法,令我惊讶的是编译得很好:
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
?