This is part 3 of the series called “Functional Java by Example”.
The example I’m evolving in each part of the series is some kind of “feed handler” which processes documents. In previous parts I started with some original code and applied some refactorings to describe “what” instead of “how”.
In order to help the code going forward, we need to get rid of the good ol’
java.lang.Exception. (disclaimer: we can’t actually get rid of it) That’s where this part comes in.