Many things could go wrong there, file does not exist, network is down, etc.

Traditionally, we could have manage exceptions surrounding the loadFiles() method with try and catch and handle each exception within a catch statement.

Cyclops Try made things easier and cleaner :

Try.withCatch(this::loadFiles, Exception.class).onFail(FileNotFoundException.class, e -> System.err.println("Something specific to do here if file does not exists"+ e)).onFail(IOException.class, e -> System.err.println("Maybe retry a couple of times before dropping the operation"+ e)).forEach(System.out::println);