CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/DataFormats/Common/src/ConvertHandle.cc

Go to the documentation of this file.
00001 #include "FWCore/Utilities/interface/EDMException.h"
00002 #include "DataFormats/Common/interface/EDProduct.h"
00003 
00004 namespace edm {
00005   class EDProduct;
00006   namespace handleimpl {
00007     void throwInvalidReference() {
00008       throw edm::Exception(edm::errors::InvalidReference,"NullPointer")
00009         << "edm::BasicHandle has null pointer to Wrapper";
00010     }
00011 
00012     void throwConvertTypeError(EDProduct const* product) {
00013       throw edm::Exception(edm::errors::LogicError,"ConvertType")
00014         << "edm::Wrapper converting from EDProduct to "
00015         << typeid(*product).name();
00016     }
00017   }
00018 }