10 namespace exception_actions {
12 static constexpr std::array<char const*, LastCode> tab = []() constexpr {
13 std::array<char const*, LastCode>
table{};
20 return static_cast<unsigned int>(code) < tab.size() ? tab[code] :
"UnknownAction";
30 typedef std::vector<std::string>
vstring;
44 for (
auto const&
v :
opts.getUntrackedParameter<std::vector<std::string>>(
actionName(code))) {
64 ActionMap::const_iterator
ib(
map_.begin()), ie(
map_.end());
65 for (;
ib != ie; ++
ib) {
void add(const std::string &category, exception_actions::ActionCodes code)
exception_actions::ActionCodes find(const std::string &category) const
std::map< std::string, exception_actions::ActionCodes > ActionMap
std::vector< std::string > vstring
~ExceptionToActionTable()
const char * actionName(ActionCodes code)