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