我想火test()
方法(使用从JAudioTagger库元素)点击一个JavaFX按钮时:为什么我得到这个未处理的异常错误?
search.setOnAction(new EventHandler<ActionEvent>() {
public void handle(ActionEvent e) {
test();
}
});
这里是test()
方法:
public void test() throws CannotReadException, IOException, TagException, ReadOnlyFileException, InvalidAudioFrameException {
...
}
出于某种原因Eclipse强调了在第一位代码中对test()的引用,并指出
Unhandled exception type InvalidAudioFrameException
即使t他的例外已经在test()
方法中处理过了?我不明白。
我不知道为什么人们回答了一个问题,这个问题以前显然被问过数十亿次。 –
[选择重复问题](https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=unhandled+exception+type+java+site:http :%2F%2Fstackoverflow.com%2F) –