src
FWCore
Framework
interface
ExceptionActions.h
Go to the documentation of this file.
1
#ifndef FWCore_Framework_ExceptionActions_h
2
#define FWCore_Framework_ExceptionActions_h
3
4
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
5
6
#include <string>
7
#include <map>
8
9
namespace
edm
{
10
namespace
exception_actions {
11
enum
ActionCodes
{
IgnoreCompletely
= 0,
Rethrow
,
TryToContinue
,
LastCode
};
12
13
const
char
*
actionName
(
ActionCodes
code);
14
}
// namespace exception_actions
15
16
class
ExceptionToActionTable
{
17
public
:
18
typedef
std::map<std::string, exception_actions::ActionCodes>
ActionMap
;
19
20
ExceptionToActionTable
();
21
explicit
ExceptionToActionTable
(
const
ParameterSet
&);
22
~ExceptionToActionTable
();
23
24
void
add
(
const
std::string
&
category
,
exception_actions::ActionCodes
code);
25
exception_actions::ActionCodes
find
(
const
std::string
&
category
)
const
;
26
27
private
:
28
void
addDefaults
();
29
ActionMap
map_
;
30
};
31
}
// namespace edm
32
#endif
edm::exception_actions::ActionCodes
ActionCodes
Definition:
ExceptionActions.h:11
edm::exception_actions::IgnoreCompletely
Definition:
ExceptionActions.h:11
edm::exception_actions::Rethrow
Definition:
ExceptionActions.h:11
edm::ExceptionToActionTable::map_
ActionMap map_
Definition:
ExceptionActions.h:29
edm::ExceptionToActionTable::addDefaults
void addDefaults()
Definition:
ExceptionActions.cc:57
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
ParameterSet.h
edm::ExceptionToActionTable::add
void add(const std::string &category, exception_actions::ActionCodes code)
Definition:
ExceptionActions.cc:72
edm::ExceptionToActionTable::ExceptionToActionTable
ExceptionToActionTable()
Definition:
ExceptionActions.cc:23
edm::exception_actions::LastCode
Definition:
ExceptionActions.h:11
edm::exception_actions::TryToContinue
Definition:
ExceptionActions.h:11
edm::ExceptionToActionTable::find
exception_actions::ActionCodes find(const std::string &category) const
Definition:
ExceptionActions.cc:76
validateAlignments.category
category
Definition:
validateAlignments.py:129
edm
HLT enums.
Definition:
AlignableModifier.h:19
edm::ParameterSet
Definition:
ParameterSet.h:48
edm::ExceptionToActionTable::ActionMap
std::map< std::string, exception_actions::ActionCodes > ActionMap
Definition:
ExceptionActions.h:18
edm::ExceptionToActionTable::~ExceptionToActionTable
~ExceptionToActionTable()
Definition:
ExceptionActions.cc:70
edm::ExceptionToActionTable
Definition:
ExceptionActions.h:16
edm::exception_actions::actionName
const char * actionName(ActionCodes code)
Definition:
ExceptionActions.cc:11
Generated for CMSSW Reference Manual by
1.8.14