14#ifndef SGTOOLS_EXCEPTIONS_H
15#define SGTOOLS_EXCEPTIONS_H
19#include "GaudiKernel/ClassID.h"
37 :
public std::bad_cast
55 virtual const char*
what()
const noexcept override;
93 CLID primary_id,
const std::string& primary_key);
104 :
public std::runtime_error
116 const std::string& old_key,
CLID old_clid,
uint32_t CLID
The Class ID type.
virtual const char * what() const noexcept override
Return the message for this exception.
std::string m_what
The message for this exception.
ExcBadDataProxyCast(CLID id, const std::type_info &tid)
Constructor.
ExcProxyCollision(CLID id, const std::string &key, CLID primary_id, const std::string &primary_key)
Constructor.
ExcSgkeyCollision(const std::string &new_key, CLID new_clid, const std::string &old_key, CLID old_clid, sgkey_t sgkey)
Constructor.
void throwExcBadDataProxyCast(const DataProxy &proxy, const std::type_info &tid)
Throw an ExcBadDataProxyCast exception.
uint32_t sgkey_t
Type used for hashed StoreGate key+CLID pairs.