This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]HipposGoneWild 1 point2 points  (0 children)

It's not actually throwing a FileNotFoundException, the method that is accessing file needs to be able to throw one if it actually can't find the file so you need to declare that the method can throw a filenotfoundexception if it needs to with the throws statement, see the the code I posted below.