1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
#ifndef DataFormats_FWLite_ErrorThrower_h
#define DataFormats_FWLite_ErrorThrower_h
// -*- C++ -*-
//
// Package: FWLite
// Class : ErrorThrower
//
/**\class ErrorThrower ErrorThrower.h DataFormats/FWLite/interface/ErrorThrower.h
Description: Allows delaying a throw of a specific exception
Usage:
Used internally by FWLite
*/
//
// Original Author: Chris Jones
// Created: Tue Sep 23 09:58:07 EDT 2008
//
// system include files
#include <typeinfo>
// user include files
// forward declarations
namespace fwlite {
class ErrorThrower {
public:
ErrorThrower();
virtual ~ErrorThrower();
// ---------- const member functions ---------------------
virtual void throwIt() const = 0;
virtual ErrorThrower* clone() const = 0;
// ---------- static member functions --------------------
static ErrorThrower* unsetErrorThrower();
static ErrorThrower* errorThrowerBranchNotFoundException(const std::type_info&,
const char*,
const char*,
const char*);
static ErrorThrower* errorThrowerProductNotFoundException(const std::type_info&,
const char*,
const char*,
const char*);
// ---------- member functions ---------------------------
private:
//ErrorThrower(const ErrorThrower&); // stop default
//const ErrorThrower& operator=(const ErrorThrower&); // stop default
// ---------- member data --------------------------------
};
} // namespace fwlite
#endif
|