ATLAS Offline Software
Loading...
Searching...
No Matches
Control/StoreGate/StoreGate/exceptions.h
Go to the documentation of this file.
1// This file's extension implies that it's C, but it's really -*- C++ -*-.
2
3/*
4 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
5*/
12
13
14#ifndef STOREGATE_EXCEPTIONS_H
15#define STOREGATE_EXCEPTIONS_H
16
17
19#include "SGCore/sgkey_t.h"
20#include "GaudiKernel/ClassID.h"
21#include "GaudiKernel/EventContext.h"
22#include "GaudiKernel/DataHandle.h"
23#include <stdexcept>
24#include <typeinfo>
25#include <string>
26
27
28namespace SG {
29
30
37 : public std::runtime_error
38{
39public:
44};
45
46
50[[noreturn]]
52
53
61 : public std::runtime_error
62{
63public:
68 ExcBadHandleKey (const std::string& key);
69};
70
71
76 : public std::runtime_error
77{
78public:
83 ExcForbiddenMethod (const std::string& name);
84};
85
86
91 : public std::runtime_error
92{
93public:
101 const std::string& sgkey,
102 const std::string& storename);
103};
104
105
110 : public std::runtime_error
111{
112public:
121 ExcUninitKey (CLID clid,
122 const std::string& sgkey,
123 const std::string& storename,
124 const std::string& holdername = "",
125 const std::string& htype = "VarHandle");
126};
127
128
133 : public std::runtime_error
134{
135public:
142 ExcConstObject (CLID clid,
143 const std::string& sgkey,
144 const std::string& storename);
145};
146
147
152 : public std::runtime_error
153{
154public:
162 const std::string& sgkey,
163 const std::string& storename);
164};
165
166
173[[noreturn]]
175 const std::string& sgkey,
176 const std::string& storename);
177
178
183 : public std::runtime_error
184{
185public:
193 const std::string& sgkey,
194 const std::string& storename);
195};
196
197
204[[noreturn]]
206 const std::string& sgkey,
207 const std::string& storename);
208
209
214 : public std::runtime_error
215{
216public:
224 const std::string& sgkey,
225 const std::string& storename);
226};
227
228
235[[noreturn]]
237 const std::string& sgkey,
238 const std::string& storename);
239
240
250 : public std::runtime_error
251{
252public:
260 const std::string& sgkey,
261 const std::string& storename);
262};
263
264
271[[noreturn]]
273 const std::string& sgkey,
274 const std::string& storename);
275
276
281 : public std::runtime_error
282{
283public:
288};
289
290
295 : public std::runtime_error
296{
297public:
302};
303
304
311 : public std::runtime_error
312{
313public:
319 ExcBadContext (const EventContext& ctx, const std::string& key);
320};
321
322
329 : public std::runtime_error
330{
331public:
337 ExcNoCondCont (const std::string& key, const std::string& why);
338};
339
340
345 : public std::runtime_error
346{
347public:
352};
353
354
359 : public std::runtime_error
360{
361public:
365 ExcNoRange();
366};
367
368
369
370
375 : public std::runtime_error
376{
377public:
384 ExcBadDecorElement (Gaudi::DataHandle::Mode mode,
385 CLID clid,
386 const std::string& decorKey);
387};
388
389
393[[noreturn]]
394void throwExcBadDecorElement (Gaudi::DataHandle::Mode mode,
395 CLID clid,
396 const std::string& decorKey);
397
398
399} // namespace SG
400
401
402#endif // not STOREGATE_EXCEPTIONS_H
Basic definitions for auxiliary types.
uint32_t CLID
The Class ID type.
ExcBadContext(const EventContext &ctx, const std::string &key)
Constructor.
ExcBadDecorElement(Gaudi::DataHandle::Mode mode, CLID clid, const std::string &decorKey)
Constructor.
ExcBadHandleKey(const std::string &key)
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.
ExcNoCondCont(const std::string &key, const std::string &why)
Constructor.
ExcNonConstHandleKey(CLID clid, const std::string &sgkey, const std::string &storename)
Constructor.
ExcNullReadHandle(CLID clid, const std::string &sgkey, const std::string &storename)
Constructor.
ExcNullUpdateHandle(CLID clid, const std::string &sgkey, const std::string &storename)
Constructor.
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.
Forward declaration.
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.
void throwExcNullHandleKey()
Throw a SG::ExcNullHandleKey exception.
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.
void throwExcNullWriteHandle(CLID clid, const std::string &sgkey, const std::string &storename)
Throw a SG::ExcNullWriteHandle exception.