8 std::shared_ptr<cms::Exception> whyFailed = std::make_shared<edm::Exception>(
errors::InvalidReference,
"NullPointer");
9 *whyFailed <<
"Handle has null pointer to data product";
19 <<
"edm::BasicHandle contains a product of type " << actual.name() <<
".\n" 20 <<
"A type of " << expected.name() <<
"was expected.";
static std::shared_ptr< HandleExceptionFactory > s_invalidRefFactory
void throwConvertTypeError(std::type_info const &expected, std::type_info const &actual)
std::shared_ptr< HandleExceptionFactory > makeHandleExceptionFactory(T &&iFunctor)
std::shared_ptr< edm::HandleExceptionFactory > makeInvalidReferenceException()