CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
edm::vhhelper Namespace Reference

Functions

void throwIfNotValid (const void *) noexcept(false)
 

Function Documentation

void edm::vhhelper::throwIfNotValid ( const void *  iProduct)
noexcept

Definition at line 5 of file ValidHandle.cc.

References Exception.

Referenced by edm::makeValid(), and edm::ValidHandle< T >::ValidHandle().

5  {
6  if (nullptr == iProduct) {
7  throw cms::Exception("Invalid Product") << "Attempted to fill a edm::ValidHandle with an invalid product";
8  }
9  }