Tag: unhandled exception

我可以将Eclipse设置为忽略“未处理的exception类型”

是否有可能让Eclipse忽略错误“未处理的exception类型”? 在我的具体情况下,原因是我已经检查过该文件是否存在。 因此,我认为没有理由提出try catch语句。 file = new File(filePath); if(file.exists()) { FileInputStream fileStream = openFileInput(filePath); if (fileStream != null) { 或者我错过了什么?