30 return std::format (
"SG::ExcPointerNotInSG: "
31 "The object referenced by a DataLink / ElementLink is not registered "
32 "in StoreGate: {}.", pointer);
53 return std::format (
"SG::ExcCLIDMismatch: "
54 "Attempt to set DataLink / ElementLink with CLID {} to object with CLID {}",
78 return std::format (
"SG::ExcInvalidLink: "
79 "Attempt to dereference invalid DataLink / ElementLink "
92 const std::string& key,
119 std::string s = std::format (
"SG::ExcBadForwardLink: "
120 "ForwardIndexingPolicy: internal link state of '{}' is invalid", name);
121 if (
index !=
static_cast<size_t>(-1)) {
122 s += std::format (
": m_index = {} is >= data container size = {}",
162 :
std::runtime_error (
"SG::ExcElementNotFound: " + where +
163 ": element not found")
187 :
std::runtime_error (
"SG::ExcInvalidIndex: " + where +
": invalid index")
211 :
std::runtime_error (
"SG::ExcIndexNotFound: " + where +
": index not found")
234 :
std::runtime_error (
"SG::ExcIncomparableEL: Attempt to compare an ElementLink that does not have a SG key or index.")
256 :
std::runtime_error (
"SG::ExcBadToTransient: toTransient() called on an already-initialized link.")
278 return std::format (
"SG::ExcConstStorable: "
279 "Tried to retrieve const storable as a non-const pointer "
292 const std::string& key,
307 return std::format (
"SG::ExcBadThinning: Bad thinning request [{}/{}] ({})",
319 const std::string& key,
334 const std::string& key,
Exceptions that can be thrown from AthLinks.
uint32_t CLID
The Class ID type.
Exception — ForwardIndexingPolicy: internal link state is invalid.
ExcBadForwardLink(size_t index, size_t size, const std::string &name)
Constructor.
Exception – Bad thinning request.
ExcBadThinning(CLID clid, const std::string &key, SG::sgkey_t sgkey)
Constructor.
Exception — bad toTransient.
ExcBadToTransient()
Constructor.
ExcCLIDMismatch(CLID obj_clid, CLID link_clid)
Constructor.
ExcConstStorable(CLID clid, const std::string &key, SG::sgkey_t sgkey)
Constructor.
Exception — element not found.
ExcElementNotFound(const std::string &where)
Constructor.
Exception — incomparable ElementLink.
ExcIncomparableEL()
Constructor.
Exception — index not found.
ExcIndexNotFound(const std::string &where)
Constructor.
Exception — invalid index.
ExcInvalidIndex(const std::string &where)
Constructor.
Exception — Attempt to dereference invalid DataLink / ElementLink ".
ExcInvalidLink(CLID clid, const std::string &key, SG::sgkey_t sgkey)
Constructor.
ExcPointerNotInSG(const void *pointer)
Constructor.
std::string excInvalidLink_format(CLID clid, const std::string &key, SG::sgkey_t sgkey)
Helper: format exception error string.
void throwExcElementNotFound(const char *where)
Throw a SG::ExcElementNotFound exception.
std::string excCLIDMismatch_format(CLID obj_clid, CLID link_clid)
Helper: format exception error string.
void throwExcBadToTransient()
Throw a SG::ExcBadToTransient exception.
std::string excConstStorable_format(CLID clid, const std::string &key, SG::sgkey_t sgkey)
Helper: format exception error string.
void AthLinks_error()
For setting debugger breakpoints.
uint32_t sgkey_t
Type used for hashed StoreGate key+CLID pairs.
void throwExcInvalidLink(CLID clid, const std::string &key, SG::sgkey_t sgkey)
Throw a SG::ExcInvalidLink exception.
void throwExcIncomparableEL()
Throw a SG::IncomparableEL exception.
void throwExcBadThinning(CLID clid, const std::string &key, SG::sgkey_t sgkey)
Throw a SG::ExcBadThinning exception.
void throwExcIndexNotFound(const char *where)
Throw a SG::ExcIndexNotFound exception.
std::string excPointerNotInSG_format(const void *pointer)
Helper: format exception error string.
virtual size_t size() const override
Return the number of elements in the store.
std::string excBadForwardLink_format(size_t index, size_t size, const std::string &name)
Helper: format exception error string.
std::string excBadThinning_format(CLID clid, const std::string &key, SG::sgkey_t sgkey)
Helper: format exception error string.
void throwExcInvalidIndex(const char *where)
Throw a SG::ExcInvalidIndex exception.
void throwExcBadForwardLink(size_t index, size_t size, const std::string &name)
Throw a SG::ExcBadForwardLink exception.