|
ATLAS Offline Software
|
Go to the documentation of this file.
13 #include "GaudiKernel/System.h"
24 std::ostringstream
os;
25 os <<
"Bad cast of DataProxy with CLID " <<
id
26 <<
" to type " << System::typeinfoName (tid);
67 const std::string&
key,
69 const std::string& primary_key)
71 std::ostringstream
os;
72 os <<
"ExcProxyCollision: proxy collision for clid/key "
74 <<
" (primary " << primary_id <<
" / " << primary_key <<
").";
87 const std::string&
key,
89 const std::string& primary_key)
104 const std::string& old_key,
108 std::ostringstream
os;
109 os <<
"ExcSgkeyCollision: sgkey hash collision; new key: "
110 << new_key <<
"/" << new_clid <<
" and existing key: "
111 << old_key <<
"/" << old_clid <<
" both hash to " <<
sgkey;
126 const std::string& old_key,
virtual const char * what() const
Return the message for this exception.
ExcBadDataProxyCast(CLID id, const std::type_info &tid)
Constructor.
ExcSgkeyCollision(const std::string &new_key, CLID new_clid, const std::string &old_key, CLID old_clid, sgkey_t sgkey)
Constructor.
Exception — Bad cast of DataProxy with CLID.
std::string excProxyCollision_format(CLID id, const std::string &key, CLID primary_id, const std::string &primary_key)
Helper: Format exception string.
std::string excSgkeyCollision_format(const std::string &new_key, CLID new_clid, const std::string &old_key, CLID old_clid, sgkey_t sgkey)
Helper: Format exception string.
std::string m_what
The message for this exception.
uint32_t CLID
The Class ID type.
uint32_t sgkey_t
Type used for hashed StoreGate key+CLID pairs.
ExcProxyCollision(CLID id, const std::string &key, CLID primary_id, const std::string &primary_key)
Constructor.
std::string excBadDataProxyCast_format(CLID id, const std::type_info &tid)
Helper: Format exception string.
void throwExcBadDataProxyCast(CLID id, const std::type_info &tid)
Throw an ExcBadDataProxyCast exception.