I have a lambda expression, which can throw a `IOException`:

```
    Function<String, List<String>> readFile = path-> {
        try {
            return Files.readAllLines(
                    Paths.get((String) path), Charset.forName("UTF-8"));
        } catch (IOException e) {
            return null;
        }
    };

```

I would like to write the same lambda expression without using the `try {} catch {}` block, so that the exception would be rethrown to the enclosing function:

```
public static void main(String[] args) throws IOException {
    Function<String, List<String>> readFile = path-> {
        try {
            return Files.readAllLines(
                    Paths.get((String) path), Charset.forName("UTF-8"));
        } catch (IOException e) {
            return null;
        }
    };
}

```

The only problem is that **I cannot define my own interfaces/classes** and I can only use interfaces provided by Java APIs. 

Would that be possible?