<分区>
代码:
catch (IOException e) {
LOGGER.error("IOException exception happened");
//now need throw again the same exception to be
//catched in the upper method
}
但是当我简单地尝试时:
catch (IOException e) {
LOGGER.error("IOException exception happened");
//now need throw again the same exception to be
//catched in the upper method
throw e;
}
Eclipse 假设我将“throw e”放入 try catch block 中。但这是无稽之谈。 如何解决这个问题? 谢谢。