Thursday 1 December 2011

c++ exceptions: numerological inexactitudes

This is funny. My previous post was about patching the boost::program_options library, and the challenges of adding context to exception messages as they percolate up to the top.
In a post on google+, the author of boost::program_options discusses the opposite problem: as the exception gets caught and rethrown at increasingly higher levels of the programme, all the salient details pertaining to the error are slowly discarded in favour of more and more anodyne messages. Is this political correctness gone mad c++ style?

"We initially through we found a critical error in your data. Now we realise that it was merely a numerological inexactitude."