xxxxxxxxxx
public static Consumer<String> handleCheckedExceptions(Consumer<String> consumer) {
return fileName -> {
try {
consumer.accept(fileName);
} catch (Exception ex) {
throw new RuntimeException(ex);
}
};
}