The IOException could be saved in the InnerException property of the FileNotFoundException, enabling the code that catches the FileNotFoundException to examine what causes the initial error.

  • IOException可以保存在FileNotFoundException的InnerException属性中,从而使捕捉FileNotFoundException的代码可以检查导致初始错误的原因。
目录 查词历史