CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ErrorThrower.h
Go to the documentation of this file.
1 #ifndef DataFormats_FWLite_ErrorThrower_h
2 #define DataFormats_FWLite_ErrorThrower_h
3 // -*- C++ -*-
4 //
5 // Package: FWLite
6 // Class : ErrorThrower
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Tue Sep 23 09:58:07 EDT 2008
19 //
20 
21 #if !defined(__CINT__) && !defined(__MAKECINT__)
22 // system include files
23 #include <typeinfo>
24 
25 // user include files
26 
27 // forward declarations
28 namespace fwlite {
29  class ErrorThrower {
30 
31  public:
32  ErrorThrower();
33  virtual ~ErrorThrower();
34 
35  // ---------- const member functions ---------------------
36  virtual void throwIt() const =0;
37  virtual ErrorThrower* clone() const =0;
38 
39  // ---------- static member functions --------------------
41  static ErrorThrower* errorThrowerBranchNotFoundException(const std::type_info&, const char*, const char*, const char*);
42  static ErrorThrower* errorThrowerProductNotFoundException(const std::type_info&, const char*, const char*, const char*);
43 
44  // ---------- member functions ---------------------------
45 
46  private:
47  //ErrorThrower(const ErrorThrower&); // stop default
48 
49  //const ErrorThrower& operator=(const ErrorThrower&); // stop default
50 
51  // ---------- member data --------------------------------
52 
53  };
54 
55 }
56 #endif
57 #endif
static ErrorThrower * unsetErrorThrower()
static ErrorThrower * errorThrowerBranchNotFoundException(const std::type_info &, const char *, const char *, const char *)
virtual ErrorThrower * clone() const =0
static ErrorThrower * errorThrowerProductNotFoundException(const std::type_info &, const char *, const char *, const char *)
virtual void throwIt() const =0