you should really include the ex.getMessage since FNF is also raised if you run out of file descriptors or if you have No space left on  device