Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
DataFormats
Common
src
ConvertHandle.cc
Go to the documentation of this file.
1
#include "
DataFormats/Common/interface/ConvertHandle.h
"
2
#include "
FWCore/Utilities/interface/EDMException.h
"
3
4
namespace
edm {
5
namespace
handleimpl {
6
void
throwInvalidReference
() {
7
throw
Exception
(
errors::InvalidReference
,
"NullPointer"
)
8
<<
"edm::BasicHandle has null pointer to Wrapper"
;
9
}
10
11
void
throwConvertTypeError
(std::type_info
const
& expected, std::type_info
const
& actual) {
12
throw
Exception
(
errors::LogicError
,
"TypeMismatch"
)
13
<<
"edm::BasicHandle contains a product of type "
<< actual.name() <<
".\n"
14
<<
"A type of "
<< expected.name() <<
"was expected."
;
15
}
16
}
17
}
ConvertHandle.h
Exception
Definition:
hltDiff.cc:290
edm::handleimpl::throwConvertTypeError
void throwConvertTypeError(std::type_info const &expected, std::type_info const &actual)
Definition:
ConvertHandle.cc:11
EDMException.h
edm::errors::InvalidReference
Definition:
EDMException.h:40
edm::handleimpl::throwInvalidReference
void throwInvalidReference()
Definition:
ConvertHandle.cc:6
edm::errors::LogicError
Definition:
EDMException.h:38
Generated for CMSSW Reference Manual by
1.8.5