Exception handling using enumerations in Java (I)

When I first read about Swift I quite liked its error handling. In Java checked exceptions have gotten quite a bad rep but instead of throwing out the baby with the bathwater and getting rid of checked exceptions altogether, the way they do it in Swift seems to strike a…