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
CaughtSignal
= 9000
67
};
68
69
}
70
71
class
dso_export
Exception
:
public
cms::Exception
{
72
public
:
73
typedef
errors::ErrorCodes
Code
;
74
75
explicit
Exception
(Code
category
);
76
77
Exception
(Code
category
,
std::string
const
&
message
);
78
Exception
(Code
category
,
char
const
*
message
);
79
80
Exception
(Code
category
,
std::string
const
&
message
,
cms::Exception
const
& another);
81
Exception
(Code
category
,
char
const
*
message
,
cms::Exception
const
& another);
82
83
Exception
(
Exception
const
&
other
);
84
85
~
Exception
()
noexcept
override;
86
87
void
swap
(
Exception
&
other
) {
88
std::swap
(category_, other.category_);
89
}
90
91
Exception
& operator=(
Exception
const
&
other
);
92
93
Code
categoryCode
()
const
{
return
category_; }
94
95
static
const
std::string
& codeToString(Code);
96
97
static
void
throwThis(Code
category
,
98
char
const
* message0 =
""
,
99
char
const
* message1 =
""
,
100
char
const
* message2 =
""
,
101
char
const
* message3 =
""
,
102
char
const
* message4 =
""
);
103
static
void
throwThis(Code category,
char
const
* message0,
int
intVal,
char
const
* message2 =
""
);
104
105
Exception
*
clone
()
const override
;
106
107
private
:
108
109
void
rethrow()
override
;
110
int
returnCode_()
const override
;
111
112
Code
category_
;
113
};
114
}
115
116
#endif
edm::Exception::categoryCode
Code categoryCode() const
Definition:
EDMException.h:93
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:73
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:112
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:71
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:66
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