1 #ifndef Utilities_CodedException_h
2 #define Utilities_CodedException_h
18 #define EDM_MAP_ENTRY(map, ns, name) map[ns::name]=#name
19 #define EDM_MAP_ENTRY_NONS(map, name) map[name]=#name
32 const std::string& message,
45 typedef std::map<Code,std::string>
CodeMap;
65 typename CodeMap::const_iterator
i(trans->find(c));
66 return i!=trans->end() ?
i->second : std::string(
"UnknownCode");
80 cms::
Exception(codeToString(aCategory),message),
89 cms::
Exception(codeToString(aCategory),message,another),
97 category_(other.category_)
101 template <
class Code>
static std::string codeToString(Code)
-----------— implementation details ---------------—
virtual ~CodedException()
CodedException(Code category)
Code categoryCode() const
std::map< Code, std::string > CodeMap
void getCodeTable(edm::Exception::CodeMap *&setme)
std::string category() const