阅读背景:

JAVA + try catch(FileNotFoundException e)去捕获(异常e)?

来源:互联网 

I have some command which creates a file on disk. Because the folder in which the file has to be created is dynamic, I have a catch(FileNotFoundException e). In the same try block, I already have a catch(Exception e) block. For some reason, when I run my code and the folder does not exists yet, the catch(Exception e) block is used, not the FileNotFoundException one.I have some command which creates a file on dis




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: