CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_9/src/DataFormats/Common/src/ConvertHandle.cc

Go to the documentation of this file.
00001 #include "DataFormats/Common/interface/ConvertHandle.h"
00002 #include "FWCore/Utilities/interface/EDMException.h"
00003 
00004 namespace edm {
00005   namespace handleimpl {
00006     void throwInvalidReference() {
00007       throw Exception(errors::InvalidReference, "NullPointer")
00008         << "edm::BasicHandle has null pointer to Wrapper";
00009     }
00010 
00011     void throwConvertTypeError(std::type_info const& expected, std::type_info const& actual) {
00012       throw Exception(errors::LogicError, "TypeMismatch")
00013         << "edm::BasicHandle contains a product of type " << actual.name() << ".\n"
00014         << "A type of " << expected.name() << "was expected.";
00015     }
00016   }
00017 }