Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:03:55

0001 #include "DataFormats/Common/interface/ValidHandle.h"
0002 #include "FWCore/Utilities/interface/Exception.h"
0003 
0004 namespace edm::vhhelper {
0005   void throwIfNotValid(const void* iProduct) noexcept(false) {
0006     if (nullptr == iProduct) {
0007       throw cms::Exception("Invalid Product") << "Attempted to fill a edm::ValidHandle with an invalid product";
0008     }
0009   }
0010 }  // namespace edm::vhhelper