Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #545 from Dr15Jones/renameToExceptionActions
Changed generic 'action' names to be more descriptive.
- Loading branch information
Showing
23 changed files
with
109 additions
and
109 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#ifndef FWCore_Framework_ExceptionActions_h | ||
#define FWCore_Framework_ExceptionActions_h | ||
|
||
#include "FWCore/ParameterSet/interface/ParameterSet.h" | ||
|
||
#include <string> | ||
#include <map> | ||
|
||
namespace edm { | ||
namespace exception_actions { | ||
enum ActionCodes { | ||
IgnoreCompletely=0, | ||
Rethrow, | ||
SkipEvent, | ||
FailPath, | ||
LastCode | ||
}; | ||
|
||
const char* actionName(ActionCodes code); | ||
} | ||
|
||
class ExceptionToActionTable { | ||
public: | ||
typedef std::map<std::string, exception_actions::ActionCodes> ActionMap; | ||
|
||
ExceptionToActionTable(); | ||
explicit ExceptionToActionTable(const ParameterSet&); | ||
~ExceptionToActionTable(); | ||
|
||
void add(const std::string& category, exception_actions::ActionCodes code); | ||
exception_actions::ActionCodes find(const std::string& category) const; | ||
|
||
private: | ||
void addDefaults(); | ||
ActionMap map_; | ||
}; | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.