CMS 3D CMS Logo

NoRecordException.h
Go to the documentation of this file.
1 #ifndef FWCore_Framework_NoRecordException_h
2 #define FWCore_Framework_NoRecordException_h
3 // -*- C++ -*-
4 //
5 // Package: Framework
6 // Module: NoRecordException
7 //
26 //
27 // Author: Chris D Jones
28 // Created: Sat Mar 26 10:31:01 EST 2005
29 //
30 
31 // system include files
32 // user include files
35 
36 // forward declarations
37 namespace edm {
38  class IOVSyncValue;
39  class EventSetupImpl;
40  namespace eventsetup {
41  class EventSetupRecordKey;
42  void no_record_exception_message_builder(cms::Exception&, const char*, bool iKnownRecord);
44 
45  //NOTE: when EDM gets own exception hierarchy, will need to change inheritance
46  template <class T>
48  public:
49  // ---------- Constructors and destructor ----------------
50  explicit NoRecordException(bool iKnownRecord) : cms::Exception("NoRecord") {
51  no_record_exception_message_builder(*this, heterocontainer::className<T>(), iKnownRecord);
52  }
53 
55 
56  // ---------- const member functions ---------------------
57 
58  // ---------- static member functions --------------------
59 
60  // ---------- member functions ---------------------------
61 
62  private:
63  // ---------- Constructors and destructor ----------------
64  //NoRecordException(const NoRecordException&); // stop default
65 
66  // ---------- assignment operator(s) ---------------------
67  //const NoRecordException& operator=(const NoRecordException&); // stop default
68 
69  // ---------- data members -------------------------------
70  };
71 
72  // inline function definitions
73  } // namespace eventsetup
74 } // namespace edm
75 #endif
void no_record_exception_message_builder(cms::Exception &, const char *, bool iKnownRecord)
Namespace of DDCMS conversion namespace.
#define noexcept
HLT enums.
bool recordDoesExist(edm::EventSetupImpl const &, edm::eventsetup::EventSetupRecordKey const &)