Main Page
Namespaces
Classes
Package Documentation
DataFormats
Common
src
ValidHandle.cc
Go to the documentation of this file.
1
#include "
DataFormats/Common/interface/ValidHandle.h
"
2
#include "
FWCore/Utilities/interface/Exception.h
"
3
4
namespace
edm::vhhelper
{
5
void
6
throwIfNotValid
(
const
void
* iProduct)
noexcept
(
false
) {
7
if
(
nullptr
== iProduct) {
8
throw
cms::Exception
(
"Invalid Product"
)<<
"Attempted to fill a edm::ValidHandle with an invalid product"
;
9
}
10
}
11
}
Exception
Definition:
hltDiff.cc:292
ValidHandle.h
edm::vhhelper::throwIfNotValid
void throwIfNotValid(const void *) noexcept(false)
Definition:
ValidHandle.cc:6
edm::vhhelper
Definition:
ValidHandle.h:16
noexcept
#define noexcept
Definition:
GCC11Compatibility.h:36
Exception.h
Generated for CMSSW Reference Manual by
1.8.11