Use edm::convertException::wrap function to handle conversion of exceptions

Passing a C++11 lambda to this function allows us to simplify handling the conversion
of exceptions to cms::Exceptions via a reusable function.
Merge pull request #2731 from Dr15Jones/wrapConvertException

Framework -- Use edm::convertException::wrap to handle conversion of exceptions