CMS 3D CMS Logo

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 6 of file ValidHandle.cc.

References Exception.

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

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