Resource.fromFile doesn't throw any exception

Because `new File(file)` doesn't throw any exception when there's no file for the given path.