CMS 3D CMS Logo

Enumerations | Functions
edm::exception_actions Namespace Reference

Enumerations

enum  ActionCodes { IgnoreCompletely = 0, Rethrow, TryToContinue, 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 ALPAKA_ACCELERATOR_NAMESPACE::brokenline::constexpr(), IgnoreCompletely, Rethrow, TableParser::table, and TryToContinue.

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[TryToContinue] = "TryToContinue";
17  return table;
18  }();
19  return static_cast<unsigned int>(code) < tab.size() ? tab[code] : "UnknownAction";
20  }