ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
AthLinks
AthLinks
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-2025 CERN for the benefit of the ATLAS collaboration
4
*/
11
12
13
#ifndef ATHLINKS_EXCEPTIONS_H
14
#define ATHLINKS_EXCEPTIONS_H
15
16
17
#include "
SGCore/sgkey_t.h
"
18
#include "GaudiKernel/ClassID.h"
19
#include <stdexcept>
20
21
22
namespace
SG
{
23
24
35
class
ExcPointerNotInSG
36
:
public
std::runtime_error
37
{
38
public
:
43
ExcPointerNotInSG
(
const
void
* pointer);
44
};
45
46
57
class
ExcCLIDMismatch
58
:
public
std::runtime_error
59
{
60
public
:
66
ExcCLIDMismatch
(
CLID
obj_clid,
CLID
link_clid);
67
};
68
69
76
class
ExcInvalidLink
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,
99
SG::sgkey_t
sgkey);
100
101
109
class
ExcBadForwardLink
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
140
class
ExcElementNotFound
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
161
typedef
ExcElementNotFound
maybe_thinning_error
;
162
163
164
170
class
ExcInvalidIndex
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
197
class
ExcIndexNotFound
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
226
class
ExcIncomparableEL
227
:
public
std::runtime_error
228
{
229
public
:
233
ExcIncomparableEL
();
234
};
235
236
240
[[noreturn]]
241
void
throwExcIncomparableEL
();
242
243
249
class
ExcBadToTransient
250
:
public
std::runtime_error
251
{
252
public
:
256
ExcBadToTransient
();
257
};
258
259
263
[[noreturn]]
264
void
throwExcBadToTransient
();
265
266
270
class
ExcConstStorable
271
:
public
std::runtime_error
272
{
273
public
:
280
ExcConstStorable
(
CLID
clid,
281
const
std::string& key,
282
SG::sgkey_t
sgkey);
283
};
284
285
292
class
ExcBadThinning
293
:
public
std::runtime_error
294
{
295
public
:
302
ExcBadThinning
(
CLID
clid,
303
const
std::string& key,
304
SG::sgkey_t
sgkey);
305
};
306
307
314
[[noreturn]]
315
void
throwExcBadThinning
(
CLID
clid,
316
const
std::string& key,
317
SG::sgkey_t
sgkey);
318
319
320
}
// namespace SG
321
322
323
#endif
// not ATHLINKS_EXCEPTIONS_H
CLID
uint32_t CLID
The Class ID type.
Definition
Event/xAOD/xAODCore/xAODCore/ClassID_traits.h:47
SG::ExcBadForwardLink::ExcBadForwardLink
ExcBadForwardLink(size_t index, size_t size, const std::string &name)
Constructor.
Definition
Control/AthLinks/src/exceptions.cxx:142
SG::ExcBadThinning::ExcBadThinning
ExcBadThinning(CLID clid, const std::string &key, SG::sgkey_t sgkey)
Constructor.
Definition
Control/AthLinks/src/exceptions.cxx:329
SG::ExcBadToTransient::ExcBadToTransient
ExcBadToTransient()
Constructor.
Definition
Control/AthLinks/src/exceptions.cxx:262
SG::ExcCLIDMismatch::ExcCLIDMismatch
ExcCLIDMismatch(CLID obj_clid, CLID link_clid)
Constructor.
Definition
Control/AthLinks/src/exceptions.cxx:68
SG::ExcConstStorable::ExcConstStorable
ExcConstStorable(CLID clid, const std::string &key, SG::sgkey_t sgkey)
Constructor.
Definition
Control/AthLinks/src/exceptions.cxx:299
SG::ExcElementNotFound
Exception — element not found.
Definition
Control/AthLinks/AthLinks/exceptions.h:142
SG::ExcElementNotFound::ExcElementNotFound
ExcElementNotFound(const std::string &where)
Constructor.
Definition
Control/AthLinks/src/exceptions.cxx:168
SG::ExcIncomparableEL::ExcIncomparableEL
ExcIncomparableEL()
Constructor.
Definition
Control/AthLinks/src/exceptions.cxx:240
SG::ExcIndexNotFound::ExcIndexNotFound
ExcIndexNotFound(const std::string &where)
Constructor.
Definition
Control/AthLinks/src/exceptions.cxx:217
SG::ExcInvalidIndex::ExcInvalidIndex
ExcInvalidIndex(const std::string &where)
Constructor.
Definition
Control/AthLinks/src/exceptions.cxx:193
SG::ExcInvalidLink::ExcInvalidLink
ExcInvalidLink(CLID clid, const std::string &key, SG::sgkey_t sgkey)
Constructor.
Definition
Control/AthLinks/src/exceptions.cxx:96
SG::ExcPointerNotInSG::ExcPointerNotInSG
ExcPointerNotInSG(const void *pointer)
Constructor.
Definition
Control/AthLinks/src/exceptions.cxx:42
SG
Forward declaration.
Definition
CaloCellPacker_400_500.h:32
SG::throwExcElementNotFound
void throwExcElementNotFound(const char *where)
Throw a SG::ExcElementNotFound exception.
Definition
Control/AthLinks/src/exceptions.cxx:180
SG::throwExcBadToTransient
void throwExcBadToTransient()
Throw a SG::ExcBadToTransient exception.
Definition
Control/AthLinks/src/exceptions.cxx:272
SG::maybe_thinning_error
ExcElementNotFound maybe_thinning_error
Backwards compatibility.
Definition
Control/AthLinks/AthLinks/exceptions.h:161
SG::sgkey_t
uint32_t sgkey_t
Type used for hashed StoreGate key+CLID pairs.
Definition
sgkey_t.h:32
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
SG::throwExcIncomparableEL
void throwExcIncomparableEL()
Throw a SG::IncomparableEL exception.
Definition
Control/AthLinks/src/exceptions.cxx:250
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::throwExcIndexNotFound
void throwExcIndexNotFound(const char *where)
Throw a SG::ExcIndexNotFound exception.
Definition
Control/AthLinks/src/exceptions.cxx:228
SG::size
virtual size_t size() const override
Return the number of elements in the store.
SG::throwExcInvalidIndex
void throwExcInvalidIndex(const char *where)
Throw a SG::ExcInvalidIndex exception.
Definition
Control/AthLinks/src/exceptions.cxx:204
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
index
Definition
index.py:1
sgkey_t.h
Generated on
for ATLAS Offline Software by
1.17.0