CMS 3D CMS Logo

Enumerations | Functions
edm::exception_actions Namespace Reference

Enumerations

enum  ActionCodes {
  IgnoreCompletely = 0, Rethrow, SkipEvent, FailPath,
  LastCode
}
 

Functions

const char * actionName (ActionCodes code)
 

Enumeration Type Documentation

◆ ActionCodes

Function Documentation

◆ actionName()

char const * edm::exception_actions::actionName ( ActionCodes  code)

Definition at line 11 of file ExceptionActions.cc.

References FailPath, IgnoreCompletely, Rethrow, SkipEvent, and TableParser::table.

11  {
12  static constexpr std::array<char const*, LastCode> tab = []() constexpr {
13  std::array<char const*, LastCode> table{};
14  table[IgnoreCompletely] = "IgnoreCompletely";
15  table[Rethrow] = "Rethrow";
16  table[SkipEvent] = "SkipEvent";
17  table[FailPath] = "FailPath";
18  return table;
19  }
20  ();
21  return static_cast<unsigned int>(code) < tab.size() ? tab[code] : "UnknownAction";
22  }
Rethrow
Definition: DMR_cfg.py:71