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