ATLAS Offline Software
Control/AthLinks/AthLinks/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  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
4 */
13 #ifndef ATHLINKS_EXCEPTIONS_H
14 #define ATHLINKS_EXCEPTIONS_H
15 
16 
17 #include "CxxUtils/sgkey_t.h"
18 #include "GaudiKernel/ClassID.h"
19 #include <stdexcept>
20 
21 
22 namespace SG {
23 
24 
36  : public std::runtime_error
37 {
38 public:
43  ExcPointerNotInSG (const void* pointer);
44 };
45 
46 
58  : public std::runtime_error
59 {
60 public:
66  ExcCLIDMismatch (CLID obj_clid, CLID link_clid);
67 };
68 
69 
77  : public std::runtime_error
78 {
79 public:
86  ExcInvalidLink (CLID clid, const std::string& key, SG::sgkey_t sgkey);
87 };
88 
89 
96 [[noreturn]]
97 void throwExcInvalidLink (CLID clid,
98  const std::string& key,
100 
101 
110  : public std::runtime_error
111 {
112 public:
119  ExcBadForwardLink (size_t index, size_t size, const std::string& name);
120 };
121 
122 
129 [[noreturn]]
130 void throwExcBadForwardLink (size_t index, size_t size, const std::string& name);
131 
132 
141  : public std::runtime_error
142 {
143 public:
148  ExcElementNotFound (const std::string& where);
149 };
150 
151 
156 [[noreturn]]
157 void throwExcElementNotFound (const char* where);
158 
159 
162 
163 
164 
171  : public std::runtime_error
172 {
173 public:
178  ExcInvalidIndex (const std::string& where);
179 };
180 
181 
186 [[noreturn]]
187 void throwExcInvalidIndex (const char* where);
188 
189 
198  : public std::runtime_error
199 {
200 public:
205  ExcIndexNotFound (const std::string& where);
206 };
207 
208 
213 [[noreturn]]
214 void throwExcIndexNotFound (const char* where);
215 
216 
227  : public std::runtime_error
228 {
229 public:
234 };
235 
236 
240 [[noreturn]]
242 
243 
250  : public std::runtime_error
251 {
252 public:
257 };
258 
259 
263 [[noreturn]]
265 
266 
271  : public std::runtime_error
272 {
273 public:
280  ExcConstStorable (CLID clid,
281  const std::string& key,
283 };
284 
285 
293  : public std::runtime_error
294 {
295 public:
302  ExcBadThinning (CLID clid,
303  const std::string& key,
305 };
306 
307 
314 [[noreturn]]
315 void throwExcBadThinning (CLID clid,
316  const std::string& key,
318 
319 
320 } // namespace SG
321 
322 
323 #endif // not ATHLINKS_EXCEPTIONS_H
SG::ExcPointerNotInSG::ExcPointerNotInSG
ExcPointerNotInSG(const void *pointer)
Constructor.
Definition: Control/AthLinks/src/exceptions.cxx:42
SG::ExcBadToTransient
Exception — bad toTransient.
Definition: Control/AthLinks/AthLinks/exceptions.h:251
common.sgkey
def sgkey(tool)
Definition: common.py:1028
SG::ExcIndexNotFound
Exception — index not found.
Definition: Control/AthLinks/AthLinks/exceptions.h:199
SG::throwExcElementNotFound
void throwExcElementNotFound(const char *where)
Throw a SG::ExcElementNotFound exception.
Definition: Control/AthLinks/src/exceptions.cxx:180
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
index
Definition: index.py:1
SG::maybe_thinning_error
ExcElementNotFound maybe_thinning_error
Backwards compatibility.
Definition: Control/AthLinks/AthLinks/exceptions.h:161
SG::throwExcInvalidIndex
void throwExcInvalidIndex(const char *where)
Throw a SG::ExcInvalidIndex exception.
Definition: Control/AthLinks/src/exceptions.cxx:204
SG::ExcPointerNotInSG
Exception — The object referenced by a DataLink / ElementLink is not registered in SG.
Definition: Control/AthLinks/AthLinks/exceptions.h:37
SG::throwExcBadThinning
void throwExcBadThinning(CLID clid, const std::string &key, SG::sgkey_t sgkey)
Throw a SG::ExcBadThinning exception.
Definition: Control/AthLinks/src/exceptions.cxx:344
SG::ExcCLIDMismatch::ExcCLIDMismatch
ExcCLIDMismatch(CLID obj_clid, CLID link_clid)
Constructor.
Definition: Control/AthLinks/src/exceptions.cxx:68
SG::throwExcBadToTransient
void throwExcBadToTransient()
Throw a SG::ExcBadToTransient exception.
Definition: Control/AthLinks/src/exceptions.cxx:272
SG::ExcConstStorable
Exception – Tried to retrieve const storable as a non-const pointer.
Definition: Control/AthLinks/AthLinks/exceptions.h:272
SG::ExcInvalidIndex
Exception — invalid index.
Definition: Control/AthLinks/AthLinks/exceptions.h:172
SG::ExcBadToTransient::ExcBadToTransient
ExcBadToTransient()
Constructor.
Definition: Control/AthLinks/src/exceptions.cxx:262
SG::throwExcInvalidLink
void throwExcInvalidLink(CLID clid, const std::string &key, SG::sgkey_t sgkey)
Throw a SG::ExcInvalidLink exception.
Definition: Control/AthLinks/src/exceptions.cxx:111
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
SG::ExcIncomparableEL::ExcIncomparableEL
ExcIncomparableEL()
Constructor.
Definition: Control/AthLinks/src/exceptions.cxx:240
SG::ExcElementNotFound
Exception — element not found.
Definition: Control/AthLinks/AthLinks/exceptions.h:142
SG::throwExcBadForwardLink
void throwExcBadForwardLink(size_t index, size_t size, const std::string &name)
Throw a SG::ExcBadForwardLink exception.
Definition: Control/AthLinks/src/exceptions.cxx:155
python.Utils.unixtools.where
def where(filename, prepath=[])
"which" for python files -------------------------------------------------—
Definition: unixtools.py:53
SG::ExcBadThinning::ExcBadThinning
ExcBadThinning(CLID clid, const std::string &key, SG::sgkey_t sgkey)
Constructor.
Definition: Control/AthLinks/src/exceptions.cxx:329
SG::ExcInvalidIndex::ExcInvalidIndex
ExcInvalidIndex(const std::string &where)
Constructor.
Definition: Control/AthLinks/src/exceptions.cxx:193
CLID
uint32_t CLID
The Class ID type.
Definition: Event/xAOD/xAODCore/xAODCore/ClassID_traits.h:47
SG::ExcElementNotFound::ExcElementNotFound
ExcElementNotFound(const std::string &where)
Constructor.
Definition: Control/AthLinks/src/exceptions.cxx:168
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
SG::ExcBadThinning
Exception – Bad thinning request.
Definition: Control/AthLinks/AthLinks/exceptions.h:294
SG::throwExcIncomparableEL
void throwExcIncomparableEL()
Throw a SG::IncomparableEL exception.
Definition: Control/AthLinks/src/exceptions.cxx:250
SG::sgkey_t
uint32_t sgkey_t
Type used for hashed StoreGate key+CLID pairs.
Definition: CxxUtils/CxxUtils/sgkey_t.h:32
SG::ExcCLIDMismatch
Exception — Attempt to set DataLink / ElementLink with CLID <clid> to object with CLID <clid>.
Definition: Control/AthLinks/AthLinks/exceptions.h:59
SG::throwExcIndexNotFound
void throwExcIndexNotFound(const char *where)
Throw a SG::ExcIndexNotFound exception.
Definition: Control/AthLinks/src/exceptions.cxx:228
sgkey_t.h
Define the type used for hashed StoreGate key+CLID pairs.
SG::ExcIncomparableEL
Exception — incomparable ElementLink.
Definition: Control/AthLinks/AthLinks/exceptions.h:228
SG::ExcIndexNotFound::ExcIndexNotFound
ExcIndexNotFound(const std::string &where)
Constructor.
Definition: Control/AthLinks/src/exceptions.cxx:217
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37
SG::ExcConstStorable::ExcConstStorable
ExcConstStorable(CLID clid, const std::string &key, SG::sgkey_t sgkey)
Constructor.
Definition: Control/AthLinks/src/exceptions.cxx:299