23 :
std::runtime_error (
"SG::ExcNullHandleKey: Attempt to dereference a Read/Write/UpdateHandle with a null key.")
46 :
std::runtime_error (
"SG::ExcBadHandleKey: Bad key format for VarHandleKey: `" + key +
"'")
59 :
std::runtime_error (
"SG::ExcForbiddenMethod: Forbidden method called: `" + name +
"'")
69 const std::string& sgkey,
70 const std::string& storename)
73 return std::format (
"SG::ExcHandleInitError: "
74 "Error initializing VarHandle from VarHandleKey: {}+{}[{}]",
75 storename, sgkey, clid);
86 const std::string& sgkey,
87 const std::string& storename)
98 const std::string& sgkey,
99 const std::string& storename,
100 const std::string& holdername,
101 const std::string& htype)
105 std::format (
"SG::ExcUninitKey: "
106 "Error initializing {} from uninitialized {}Key: {}+{}[{}]; "
107 "keys should be initialized in your initialize().",
108 htype, htype, storename, sgkey, clid);
109 if ( holdername.size() )
110 s += std::format (
" Key held by {}.", holdername);
124 const std::string& sgkey,
125 const std::string& storename,
126 const std::string& holdername ,
127 const std::string& htype )
138 const std::string& sgkey,
139 const std::string& storename)
142 return std::format (
"SG::ExcConstObject: "
143 "Tried to retrieve non-const pointer to const object via VarHandleKey: {}+{}[{}]",
144 storename, sgkey, clid);
155 const std::string& sgkey,
156 const std::string& storename)
167 const std::string& sgkey,
168 const std::string& storename)
171 return std::format (
"SG::ExcNullWriteHandle: "
172 "Attempt to dereference write handle before record: {}+{}[{}]",
173 storename, sgkey, clid);
184 const std::string& sgkey,
185 const std::string& storename)
198 const std::string& sgkey,
199 const std::string& storename)
210 const std::string& sgkey,
211 const std::string& storename)
214 return std::format (
"SG::ExcNullReadHandle: "
215 "Dereference of read handle failed: {}+{}[{}]",
216 storename, sgkey, clid);
227 const std::string& sgkey,
228 const std::string& storename)
241 const std::string& sgkey,
242 const std::string& storename)
253 const std::string& sgkey,
254 const std::string& storename)
257 return std::format (
"SG::ExcNullUpdateHandle: "
258 "Dereference of update handle failed: {}+{}[{}]",
259 storename, sgkey, clid);
270 const std::string& sgkey,
271 const std::string& storename)
284 const std::string& sgkey,
285 const std::string& storename)
296 const std::string& sgkey,
297 const std::string& storename)
300 return std::format (
"SG::ExcNonConstHandleKey: "
301 "Attempt to get non-const VarHandleKey from non-owning VarHandle: {}+{}[{}]",
302 storename, sgkey, clid);
313 const std::string& sgkey,
314 const std::string& storename)
327 const std::string& sgkey,
328 const std::string& storename)
341 :
std::runtime_error (
"SG::ExcInvalidIterator: Attempt to dereference invalid SG::Iterator/SG::ConstIterator")
353 :
std::runtime_error (
"Initialization of InitializedReadHandleKey failed.")
363 const std::string& key)
366 return std::format (
"SG::ExcBadContext: "
367 "Bad EventContext extension while building ReadCondHandle. "
368 "The EventContext extension is not {} for key {}.",
369 (ctx.hasExtension() ?
"of type Atlas::ExtendedEventContext" :
"set"),
390 const std::string& why)
393 return std::format (
"SG::ExcNoCondCont: "
394 "Can't retrieve CondCont from ReadCondHandle for key {}. {}",
417 :
std::runtime_error (
"SG::ExcBadReadCondHandleInit: ReadCondHandle didn't initialize in getRange().")
429 :
std::runtime_error (
"SG::ExcBadReadCondHandleInit: Range not set in ReadCondHandle::getRange().")
440 const std::string& decorKey)
442 std::string modestr =
"???";
443 if (mode == Gaudi::DataHandle::Writer)
445 else if (mode == Gaudi::DataHandle::Reader)
447 return std::format (
"SG::ExcBadDecorElement: "
448 "{}DecorHandle {}[{}]"
449 " given an element not in the requested container.",
450 modestr, decorKey, clid);
462 const std::string& decorKey)
474 const std::string& decorKey)
Exceptions that can be thrown from StoreGate.
uint32_t CLID
The Class ID type.
ExcBadContext(const EventContext &ctx, const std::string &key)
Constructor.
Exception — DecorHandle given an element not in the requested container.
ExcBadDecorElement(Gaudi::DataHandle::Mode mode, CLID clid, const std::string &decorKey)
Constructor.
ExcBadHandleKey(const std::string &key)
Constructor.
ExcBadInitializedReadHandleKey()
Constructor.
ExcBadReadCondHandleInit()
Constructor.
ExcConstObject(CLID clid, const std::string &sgkey, const std::string &storename)
Constructor.
ExcForbiddenMethod(const std::string &name)
Constructor.
ExcHandleInitError(CLID clid, const std::string &sgkey, const std::string &storename)
Constructor.
ExcInvalidIterator()
Constructor.
ExcNoCondCont(const std::string &key, const std::string &why)
Constructor.
Exception — Attempt to get non-const VarHandleKey from non-owning VarHandle.
ExcNonConstHandleKey(CLID clid, const std::string &sgkey, const std::string &storename)
Constructor.
Exception — Attempt to dereference a Read/Write/UpdateHandle with a null key.
ExcNullHandleKey()
Constructor.
Exception — Deference of read handle failed.
ExcNullReadHandle(CLID clid, const std::string &sgkey, const std::string &storename)
Constructor.
Exception — Deference of update handle failed.
ExcNullUpdateHandle(CLID clid, const std::string &sgkey, const std::string &storename)
Constructor.
Exception — Attempt to dereference write handle before record.
ExcNullWriteHandle(CLID clid, const std::string &sgkey, const std::string &storename)
Constructor.
ExcUninitKey(CLID clid, const std::string &sgkey, const std::string &storename, const std::string &holdername="", const std::string &htype="VarHandle")
Constructor.
std::string excHandleInitError_format(CLID clid, const std::string &sgkey, const std::string &storename)
Helper: format exception error string.
std::string excNonConstHandleKey_format(CLID clid, const std::string &sgkey, const std::string &storename)
Helper: format exception error string.
void throwExcNullUpdateHandle(CLID clid, const std::string &sgkey, const std::string &storename)
Throw a SG::ExcNullUpdateHandle exception.
void throwExcBadDecorElement(Gaudi::DataHandle::Mode mode, CLID clid, const std::string &decorKey)
Throw a SG::ExcBadDecorElement exception.
std::string excBadDecorElement_format(Gaudi::DataHandle::Mode mode, CLID clid, const std::string &decorKey)
Helper: format exception error string.
void throwExcNullHandleKey()
Throw a SG::ExcNullHandleKey exception.
std::string excNullUpdateHandle_format(CLID clid, const std::string &sgkey, const std::string &storename)
Helper: format exception error string.
void throwExcNonConstHandleKey(CLID clid, const std::string &sgkey, const std::string &storename)
Throw a SG::ExcNonConstHandleKey exception.
void throwExcNullReadHandle(CLID clid, const std::string &sgkey, const std::string &storename)
Throw a SG::ExcNullReadHandle exception.
std::string excNullWriteHandle_format(CLID clid, const std::string &sgkey, const std::string &storename)
Helper: format exception error string.
std::string excBadContext_format(const EventContext &ctx, const std::string &key)
Helper: format exception error string.
std::string excUninitKey_format(CLID clid, const std::string &sgkey, const std::string &storename, const std::string &holdername, const std::string &htype)
Helper: format exception error string.
std::string excNullReadHandle_format(CLID clid, const std::string &sgkey, const std::string &storename)
Helper: format exception error string.
std::string excConstObject_format(CLID clid, const std::string &sgkey, const std::string &storename)
Helper: format exception error string.
void throwExcNullWriteHandle(CLID clid, const std::string &sgkey, const std::string &storename)
Throw a SG::ExcNullWriteHandle exception.
std::string excNoCondCont_format(const std::string &key, const std::string &why)
Helper: format exception error string.