test
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 // system include files
22 #include <typeinfo>
23 
24 // user include files
25 
26 // forward declarations
27 namespace fwlite {
28  class ErrorThrower {
29 
30  public:
31  ErrorThrower();
32  virtual ~ErrorThrower();
33 
34  // ---------- const member functions ---------------------
35  virtual void throwIt() const =0;
36  virtual ErrorThrower* clone() const =0;
37 
38  // ---------- static member functions --------------------
40  static ErrorThrower* errorThrowerBranchNotFoundException(const std::type_info&, const char*, const char*, const char*);
41  static ErrorThrower* errorThrowerProductNotFoundException(const std::type_info&, const char*, const char*, const char*);
42 
43  // ---------- member functions ---------------------------
44 
45  private:
46  //ErrorThrower(const ErrorThrower&); // stop default
47 
48  //const ErrorThrower& operator=(const ErrorThrower&); // stop default
49 
50  // ---------- member data --------------------------------
51 
52  };
53 
54 }
55 #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