Exemplar alteration to show effect of using boost::exception