CMS 3D CMS Logo

Functions
edm::vhhelper Namespace Reference

Functions

void throwIfNotValid (const void *) noexcept(false)
 

Function Documentation

◆ throwIfNotValid()

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

Definition at line 5 of file ValidHandle.cc.

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

References Exception.

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

Exception
Definition: hltDiff.cc:246