Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
FWCore
Utilities
interface
EDMException.h
Go to the documentation of this file.
1
#ifndef FWCore_Utilities_EDMException_h
2
#define FWCore_Utilities_EDMException_h
3
21
#include "
FWCore/Utilities/interface/Exception.h
"
22
#include <map>
23
#include <string>
24
25
#define EDM_MAP_ENTRY(map, ns, name) map[ns::name]=#name
26
#define EDM_MAP_ENTRY_NONS(map, name) map[name]=#name
27
28
namespace
edm {
29
namespace
errors
{
30
31
// If you add a new entry to the set of values, make sure to
32
// update the translation map in EDMException.cc, the actions
33
// table in FWCore/Framework/src/Actions.cc, and the configuration
34
// fragment FWCore/Framework/test/cmsExceptionsFatalOption.cff.
35
36
enum
ErrorCodes
{
37
OtherCMS
= 8001,
38
StdException
= 8002,
39
Unknown
= 8003,
40
BadAlloc
= 8004,
41
BadExceptionType
= 8005,
42
43
ProductNotFound
= 8006,
44
DictionaryNotFound
= 8007,
45
InsertFailure
= 8008,
46
Configuration
= 8009,
47
LogicError
= 8010,
48
UnimplementedFeature
= 8011,
49
InvalidReference
= 8012,
50
NullPointerError
= 8013,
51
NoProductSpecified
= 8014,
52
EventTimeout
= 8015,
53
EventCorruption
= 8016,
54
55
ScheduleExecutionFailure
= 8017,
56
EventProcessorFailure
= 8018,
57
58
FileInPathError
= 8019,
59
FileOpenError
= 8020,
60
FileReadError
= 8021,
61
FatalRootError
= 8022,
62
MismatchedInputFiles
= 8023,
63
64
ProductDoesNotSupportViews
= 8024,
65
ProductDoesNotSupportPtr
= 8025,
66
67
NotFound
= 8026
68
};
69
70
}
71
72
class
Exception
:
public
cms::Exception
{
73
public
:
74
typedef
errors::ErrorCodes
Code
;
75
76
explicit
Exception
(
Code
category
);
77
78
Exception
(
Code
category
, std::string
const
&
message
);
79
80
Exception
(
Code
category
, std::string
const
&
message
,
cms::Exception
const
& another);
81
82
Exception
(
Exception
const
& other);
83
84
virtual
~Exception
()
throw
();
85
86
Code
categoryCode
()
const
{
return
category_
; }
87
88
int
returnCode
()
const
{
return
static_cast<
int
>
(
category_
); }
89
90
static
std::string
codeToString
(
Code
);
91
92
typedef
std::map<Code, std::string>
CodeMap
;
93
94
static
void
throwThis
(
Code
category
,
95
char
const
* message0 =
""
,
96
char
const
* message1 =
""
,
97
char
const
* message2 =
""
,
98
char
const
* message3 =
""
,
99
char
const
* message4 =
""
);
100
static
void
throwThis
(
Code
category
,
char
const
* message0,
int
intVal,
char
const
* message2 =
""
);
101
private
:
102
103
virtual
void
rethrow
();
104
105
Code
category_
;
106
};
107
108
}
109
110
#endif
edm::Exception::categoryCode
Code categoryCode() const
Definition:
EDMException.h:86
edm::errors::StdException
Definition:
EDMException.h:38
edm::errors::OtherCMS
Definition:
EDMException.h:37
benchmark_cfg.errors
tuple errors
Definition:
benchmark_cfg.py:136
edm::errors::BadAlloc
Definition:
EDMException.h:40
edm::Exception::Code
errors::ErrorCodes Code
Definition:
EDMException.h:74
edm::errors::FatalRootError
Definition:
EDMException.h:61
edm::errors::ErrorCodes
ErrorCodes
Definition:
EDMException.h:36
edm::errors::ScheduleExecutionFailure
Definition:
EDMException.h:55
edm::errors::MismatchedInputFiles
Definition:
EDMException.h:62
edm::errors::FileReadError
Definition:
EDMException.h:60
edm::Exception::throwThis
static void throwThis(Code category, char const *message0="", char const *message1="", char const *message2="", char const *message3="", char const *message4="")
Definition:
EDMException.cc:81
edm::errors::NoProductSpecified
Definition:
EDMException.h:51
edm::errors::Configuration
Definition:
EDMException.h:46
edm::Exception::category_
Code category_
Definition:
EDMException.h:105
edm::Exception
Definition:
EDMException.h:72
edm::Exception::codeToString
static std::string codeToString(Code)
-----------— implementation details ---------------—
Definition:
EDMException.cc:48
edm::errors::InvalidReference
Definition:
EDMException.h:49
edm::errors::FileInPathError
Definition:
EDMException.h:58
edm::errors::EventCorruption
Definition:
EDMException.h:53
Exception.h
edm::Exception::Exception
Exception(Code category)
Definition:
EDMException.cc:57
edm::Exception::returnCode
int returnCode() const
Definition:
EDMException.h:88
edm::errors::ProductDoesNotSupportPtr
Definition:
EDMException.h:65
cms::Exception
Definition:
Exception.h:104
edm::errors::Unknown
Definition:
EDMException.h:39
argparse.message
string message
Definition:
argparse.py:126
edm::Exception::CodeMap
std::map< Code, std::string > CodeMap
Definition:
EDMException.h:92
edm::errors::NotFound
Definition:
EDMException.h:67
edm::errors::EventProcessorFailure
Definition:
EDMException.h:56
edm::errors::ProductNotFound
Definition:
EDMException.h:43
edm::errors::DictionaryNotFound
Definition:
EDMException.h:44
edm::errors::UnimplementedFeature
Definition:
EDMException.h:48
edm::errors::EventTimeout
Definition:
EDMException.h:52
edm::errors::ProductDoesNotSupportViews
Definition:
EDMException.h:64
edm::Exception::rethrow
virtual void rethrow()
Definition:
EDMException.cc:100
edm::errors::FileOpenError
Definition:
EDMException.h:59
edm::errors::BadExceptionType
Definition:
EDMException.h:41
edm::errors::NullPointerError
Definition:
EDMException.h:50
edm::errors::LogicError
Definition:
EDMException.h:47
edm::errors::InsertFailure
Definition:
EDMException.h:45
CommPDSkim_cfg.throw
tuple throw
Definition:
CommPDSkim_cfg.py:100
edm::Exception::~Exception
virtual ~Exception()
Definition:
EDMException.cc:77
cms::Exception::category
std::string category() const
Definition:
Exception.cc:74
Generated for CMSSW Reference Manual by
1.8.5