Functional exception handling for Java 8