clean code and clean exception catching