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
NoSecondaryFiles
= 8029,
62
63
ExceededResourceVSize
= 8030,
64
ExceededResourceRSS
= 8031,
65
ExceededResourceTime
= 8032,
66
67
FileWriteError
= 8033,
68
69
EventGenerationFailure
= 8501,
70
71
CaughtSignal
= 9000
72
};
73
74
}
75
76
class
dso_export
Exception
:
public
cms::Exception
{
77
public
:
78
typedef
errors::ErrorCodes
Code
;
79
80
explicit
Exception
(Code
category
);
81
82
Exception
(Code
category
,
std::string
const
& message);
83
Exception
(Code
category
,
char
const
* message);
84
85
Exception
(Code
category
,
std::string
const
& message,
cms::Exception
const
& another);
86
Exception
(Code
category
,
char
const
* message,
cms::Exception
const
& another);
87
88
Exception
(
Exception
const
&
other
);
89
90
~
Exception
()
noexcept
override;
91
92
void
swap
(
Exception
&
other
) {
93
std::swap
(category_, other.category_);
94
}
95
96
Exception
& operator=(
Exception
const
&
other
);
97
98
Code
categoryCode
()
const
{
return
category_; }
99
100
static
const
std::string
& codeToString(Code);
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
Exception
*
clone
()
const override
;
111
112
private
:
113
114
void
rethrow()
override
;
115
int
returnCode_()
const override
;
116
117
Code
category_
;
118
};
119
}
120
121
#endif
edm::Exception::categoryCode
Code categoryCode() const
Definition:
EDMException.h:98
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:78
edm::errors::ExceededResourceRSS
Definition:
EDMException.h:64
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
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:63
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:117
edm::errors::EventGenerationFailure
Definition:
EDMException.h:69
std::swap
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
Definition:
DataFrameContainer.h:236
edm::errors::FileWriteError
Definition:
EDMException.h:67
edm::Exception
Definition:
EDMException.h:76
edm::errors::ConfigFileNotFound
Definition:
EDMException.h:25
trackingPlots.other
other
Definition:
trackingPlots.py:1436
edm::errors::InvalidReference
Definition:
EDMException.h:40
edm::errors::FileInPathError
Definition:
EDMException.h:49
edm::errors::EventCorruption
Definition:
EDMException.h:44
edm::errors::NoSecondaryFiles
Definition:
EDMException.h:61
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:71
edm::errors::EventTimeout
Definition:
EDMException.h:43
edm::errors::ExceededResourceTime
Definition:
EDMException.h:65
errors
Definition:
errors.py:1
edm::errors::ProductDoesNotSupportViews
Definition:
EDMException.h:55
taus_updatedMVAIds_cff.category
category
Definition:
taus_updatedMVAIds_cff.py:31
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