Main Page
Namespaces
Classes
Package Documentation
GIT Directory
WorkBook
Offline Guide
Release schedule
•
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
11
#include "
FWCore/Utilities/interface/Exception.h
"
12
#include <map>
13
#include <string>
14
15
#define EDM_MAP_ENTRY(map, ns, name) map[ns::name]=#name
16
#define EDM_MAP_ENTRY_NONS(map, name) map[name]=#name
17
18
namespace
edm {
19
namespace
errors
{
20
21
// If you add a new entry to the set of values, make sure to
22
// update the translation map in EDMException.cc, the actions
23
// table in FWCore/Framework/src/Actions.cc, and the configuration
24
// fragment FWCore/Framework/python/test/cmsExceptionsFatalOption_cff.py.
25
26
enum
ErrorCodes
{
27
CommandLineProcessing
= 7000,
28
ConfigFileNotFound
= 7001,
29
ConfigFileReadError
= 7002,
30
31
OtherCMS
= 8001,
32
StdException
= 8002,
33
Unknown
= 8003,
34
BadAlloc
= 8004,
35
BadExceptionType
= 8005,
36
37
ProductNotFound
= 8006,
38
DictionaryNotFound
= 8007,
39
InsertFailure
= 8008,
40
Configuration
= 8009,
41
LogicError
= 8010,
42
UnimplementedFeature
= 8011,
43
InvalidReference
= 8012,
44
NullPointerError
= 8013,
45
NoProductSpecified
= 8014,
46
EventTimeout
= 8015,
47
EventCorruption
= 8016,
48
49
ScheduleExecutionFailure
= 8017,
50
EventProcessorFailure
= 8018,
51
52
FileInPathError
= 8019,
53
FileOpenError
= 8020,
54
FileReadError
= 8021,
55
FatalRootError
= 8022,
56
MismatchedInputFiles
= 8023,
57
58
ProductDoesNotSupportViews
= 8024,
59
ProductDoesNotSupportPtr
= 8025,
60
61
NotFound
= 8026,
62
FormatIncompatibility
= 8027,
63
FallbackFileOpenError
= 8028,
64
65
ExceededResourceVSize
= 8030,
66
ExceededResourceRSS
= 8031,
67
ExceededResourceTime
= 8032,
68
69
CaughtSignal
= 9000
70
};
71
72
}
73
74
class
dso_export
Exception
:
public
cms::Exception
{
75
public
:
76
typedef
errors::ErrorCodes
Code
;
77
78
explicit
Exception
(
Code
category
);
79
80
Exception
(
Code
category
,
std::string
const
&
message
);
81
Exception
(
Code
category
,
char
const
*
message
);
82
83
Exception
(
Code
category
,
std::string
const
&
message
,
cms::Exception
const
& another);
84
Exception
(
Code
category
,
char
const
*
message
,
cms::Exception
const
& another);
85
86
Exception
(
Exception
const
& other);
87
88
virtual
~
Exception
()
throw
();
89
90
void
swap
(
Exception
& other) {
91
std::swap
(category_, other.category_);
92
}
93
94
Exception
& operator=(
Exception
const
& other);
95
96
Code
categoryCode
()
const
{
return
category_; }
97
98
static
std::string
codeToString(Code);
99
100
typedef
std::map<Code, std::string>
CodeMap
;
101
102
static
void
throwThis(
Code
category
,
103
char
const
* message0 =
""
,
104
char
const
* message1 =
""
,
105
char
const
* message2 =
""
,
106
char
const
* message3 =
""
,
107
char
const
* message4 =
""
);
108
static
void
throwThis(
Code
category
,
char
const
* message0,
int
intVal,
char
const
* message2 =
""
);
109
110
virtual
Exception
*
clone
()
const
;
111
112
private
:
113
114
virtual
void
rethrow();
115
virtual
int
returnCode_()
const
;
116
117
Code
category_
;
118
};
119
}
120
121
#endif
edm::Exception::categoryCode
Code categoryCode() const
Definition:
EDMException.h:96
edm::errors::CommandLineProcessing
Definition:
EDMException.h:27
edm::errors::StdException
Definition:
EDMException.h:32
edm::errors::OtherCMS
Definition:
EDMException.h:31
benchmark_cfg.errors
tuple errors
Definition:
benchmark_cfg.py:136
edm::errors::BadAlloc
Definition:
EDMException.h:34
edm::Exception::Code
errors::ErrorCodes Code
Definition:
EDMException.h:76
edm::errors::ExceededResourceRSS
Definition:
EDMException.h:66
edm::errors::FatalRootError
Definition:
EDMException.h:55
dso_export
#define dso_export
Definition:
Visibility.h:11
edm::errors::ErrorCodes
ErrorCodes
Definition:
EDMException.h:26
edm::errors::ScheduleExecutionFailure
Definition:
EDMException.h:49
edm::errors::ConfigFileReadError
Definition:
EDMException.h:29
edm::errors::MismatchedInputFiles
Definition:
EDMException.h:56
edm::swap
void swap(Association< C > &lhs, Association< C > &rhs)
Definition:
Association.h:116
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
edm::errors::ExceededResourceVSize
Definition:
EDMException.h:65
edm::errors::FileReadError
Definition:
EDMException.h:54
edm::errors::NoProductSpecified
Definition:
EDMException.h:45
edm::errors::Configuration
Definition:
EDMException.h:40
edm::errors::FallbackFileOpenError
Definition:
EDMException.h:63
edm::Exception::category_
Code category_
Definition:
EDMException.h:117
std::swap
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
Definition:
DataFrameContainer.h:223
python.rootplot.argparse.category
category
Definition:
argparse.py:131
edm::Exception
Definition:
EDMException.h:74
edm::errors::ConfigFileNotFound
Definition:
EDMException.h:28
edm::errors::InvalidReference
Definition:
EDMException.h:43
edm::errors::FileInPathError
Definition:
EDMException.h:52
edm::errors::EventCorruption
Definition:
EDMException.h:47
Exception.h
edm::hlt::Exception
error
Definition:
HLTenums.h:21
edm::errors::ProductDoesNotSupportPtr
Definition:
EDMException.h:59
cms::Exception
Definition:
Exception.h:68
edm::errors::Unknown
Definition:
EDMException.h:33
edm::errors::FormatIncompatibility
Definition:
EDMException.h:62
edm::Exception::CodeMap
std::map< Code, std::string > CodeMap
Definition:
EDMException.h:100
edm::errors::NotFound
Definition:
EDMException.h:61
edm::errors::EventProcessorFailure
Definition:
EDMException.h:50
edm::errors::ProductNotFound
Definition:
EDMException.h:37
edm::errors::DictionaryNotFound
Definition:
EDMException.h:38
edm::errors::UnimplementedFeature
Definition:
EDMException.h:42
edm::errors::CaughtSignal
Definition:
EDMException.h:69
edm::errors::EventTimeout
Definition:
EDMException.h:46
statics.clone
tuple clone
Definition:
statics.py:58
edm::errors::ExceededResourceTime
Definition:
EDMException.h:67
edm::errors::ProductDoesNotSupportViews
Definition:
EDMException.h:58
python.rootplot.argparse.message
string message
Definition:
argparse.py:130
edm::errors::FileOpenError
Definition:
EDMException.h:53
edm::errors::BadExceptionType
Definition:
EDMException.h:35
edm::errors::NullPointerError
Definition:
EDMException.h:44
edm::errors::LogicError
Definition:
EDMException.h:41
edm::errors::InsertFailure
Definition:
EDMException.h:39
CommPDSkim_cfg.throw
tuple throw
Definition:
CommPDSkim_cfg.py:101
Generated for CMSSW Reference Manual by
1.8.5