00001 #ifndef FWCore_Framework_MakeDataException_h 00002 #define FWCore_Framework_MakeDataException_h 00003 // -*- C++ -*- 00004 // 00005 // Package: Framework 00006 // Class : MakeDataException 00007 // 00028 // 00029 // Author: Chris Jones 00030 // Created: Fri Apr 1 13:18:53 EST 2005 00031 // 00032 00033 // system include files 00034 #include <string> 00035 00036 // user include files 00037 #include "FWCore/Framework/interface/DataKey.h" 00038 #include "FWCore/Framework/interface/EventSetupRecordKey.h" 00039 #include "FWCore/Utilities/interface/Exception.h" 00040 00041 // forward declarations 00042 namespace edm { 00043 namespace eventsetup { 00044 00045 class MakeDataException : public cms::Exception 00046 { 00047 public: 00048 MakeDataException(const EventSetupRecordKey&, const DataKey&); 00049 ~MakeDataException() throw() {} 00050 00051 // ---------- const member functions --------------------- 00052 const char* myMessage() const throw() { 00053 return message_.c_str(); 00054 } 00055 00056 // ---------- static member functions -------------------- 00057 static std::string standardMessage(const EventSetupRecordKey&, const DataKey&); 00058 // ---------- member functions --------------------------- 00059 00060 private: 00061 //MakeDataException(const MakeDataException&); // stop default 00062 00063 //const MakeDataException& operator=(const MakeDataException&); // stop default 00064 00065 // ---------- member data -------------------------------- 00066 std::string message_; 00067 }; 00068 00069 } 00070 } 00071 #endif