ATLAS Offline Software
Loading...
Searching...
No Matches
Control/AthContainers/AthContainers/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 ATHCONTAINERS_EXCEPTIONS_H
14#define ATHCONTAINERS_EXCEPTIONS_H
15
16
18#include <stdexcept>
19#include <typeinfo>
20#include <string>
21
22
23namespace SG {
24
25
33 : public std::runtime_error
34{
35public:
41
42
47 ExcNoAuxStore (const char* op);
48};
49
50
58 : public std::runtime_error
59{
60public:
66};
67
68
76 : public std::runtime_error
77{
78public:
84 ExcConstAuxData (const std::string& op, SG::auxid_t auxid = null_auxid);
85};
86
87
94 : public std::runtime_error
95{
96public:
101};
102
103
104
112 : public std::runtime_error
113{
114public:
119 ExcBadPrivateStore (const std::string& op);
120};
121
122
123
131 : public std::runtime_error
132{
133public:
143 const std::type_info& new_type,
144 const std::type_info& old_type,
145 const std::string& new_alloc_type,
146 const std::string& old_alloc_type);
147};
148
149
150
159 : public std::runtime_error
160{
161public:
168 ExcInsertionInBaseClass (const char* op,
169 const std::type_info& base_type,
170 const std::type_info& complete_type);
171};
172
173
182 : public std::runtime_error
183{
184public:
190
191
196 ExcStoreLocked (const char* op);
197};
198
199
207 : public std::runtime_error
208{
209public:
214};
215
216
220[[noreturn]]
222
223
232 : public std::runtime_error
233{
234public:
241 ExcUnknownAuxItem (const std::string& name,
242 const std::string& clsname = "",
243 const std::type_info* typ = 0);
244};
245
246
253[[noreturn]]
254void throwExcUnknownAuxItem (const std::string& name,
255 const std::string& clsname = "",
256 const std::type_info* typ = 0);
257
258
267 : public std::runtime_error
268{
269public:
274 ExcDVToELV (const std::string& detail);
275};
276
277
284 : public std::runtime_error
285{
286public:
291};
292
293
297[[noreturn]]
299
300
309 : public std::runtime_error
310{
311public:
316 ExcMissingViewVectorCLID (const std::type_info& ti);
317};
318
319
324[[noreturn]]
325void throwExcMissingViewVectorCLID (const std::type_info& ti);
326
327
334 : public std::runtime_error
335{
336public:
341 ExcMissingBaseInfo (const std::type_info& ti);
342};
343
344
349[[noreturn]]
350void throwExcMissingBaseInfo (const std::type_info& ti);
351
352
359 : public std::runtime_error
360{
361public:
366};
367
368
375 : public std::runtime_error
376{
377public:
386 const std::type_info& type,
387 SG::AuxVarFlags existing_flags,
388 SG::AuxVarFlags requested_flags);
389};
390
391
396 : public std::runtime_error
397{
398public:
407 const std::type_info& type,
408 SG::auxid_t existing_linked_id,
409 SG::auxid_t requested_linked_id);
410};
411
412
417 : public std::runtime_error
418{
419public:
426 const std::type_info& type);
427};
428
429
437 : public std::runtime_error
438{
439public:
445 ExcInvalidThinningTarget (unsigned int clid,
446 const std::string& key);
447};
448
449
456 : public std::runtime_error
457{
458public:
463};
464
465
473 : public std::runtime_error
474{
475public:
480};
481
482
486[[noreturn]]
488
489
497 : public std::runtime_error
498{
499public:
504 ExcBadVarName (const std::string& name);
505};
506
507
514 : public std::runtime_error
515{
516public:
521};
522
523
527[[noreturn]]
529
530
531} // namespace SG
532
533
534#endif // not ATHCONTAINERS_EXCEPTIONS_H
Basic definitions for auxiliary types.
ExcAuxTypeMismatch(SG::auxid_t auxid, const std::type_info &new_type, const std::type_info &old_type, const std::string &new_alloc_type, const std::string &old_alloc_type)
Constructor.
ExcBadAuxVar(SG::auxid_t auxid)
Constructor.
ExcBadPrivateStore(const std::string &op)
Constructor.
ExcBadVarName(const std::string &name)
Constructor.
ExcConstAuxData(const std::string &op, SG::auxid_t auxid=null_auxid)
Constructor.
ExcDVToELV(const std::string &detail)
Constructor.
ExcFlagMismatch(SG::auxid_t auxid, const std::type_info &type, SG::AuxVarFlags existing_flags, SG::AuxVarFlags requested_flags)
Constructor.
ExcInsertionInBaseClass(const char *op, const std::type_info &base_type, const std::type_info &complete_type)
Constructor.
ExcInvalidThinningTarget(unsigned int clid, const std::string &key)
Constructor.
ExcLinkMismatch(SG::auxid_t auxid, const std::type_info &type, SG::auxid_t existing_linked_id, SG::auxid_t requested_linked_id)
Constructor.
ExcMissingBaseInfo(const std::type_info &ti)
Constructor.
ExcMissingViewVectorCLID(const std::type_info &ti)
Constructor.
ExcNoAuxStore(SG::auxid_t auxid)
Constructor.
ExcNoLinkedVar(SG::auxid_t auxid, const std::type_info &type)
Constructor.
ExcStoreLocked(SG::auxid_t auxid)
Constructor.
ExcUnknownAuxItem(const std::string &name, const std::string &clsname="", const std::type_info *typ=0)
Constructor.
Forward declaration.
AuxVarFlags
Additional flags to qualify an auxiliary variable.
Definition AuxTypes.h:58
void throwExcViewVectorNotView()
Throw a SG::ExcViewVectorNotView exception.
static const auxid_t null_auxid
To signal no aux data item.
Definition AuxTypes.h:30
void throwExcAllocOwnership()
Throw a SG::ExcAllocOwnership exception.
void throwJaggedVecOverlappingCopy()
Throw a SG::ExcJaggedVecOverlappingCopy exception.
void throwExcMissingBaseInfo(const std::type_info &ti)
Throw a SG::ExcMissingBaseInfo exception.
void throwExcNonowningContainer()
Throw a SG::ExcNonowningContainer exception.
void throwExcUnknownAuxItem(const std::string &name, const std::string &clsname="", const std::type_info *typ=0)
Throw a SG::ExcUnknownAuxItem exception.
void throwExcMissingViewVectorCLID(const std::type_info &ti)
Throw a SG::ExcMissingViewVectorCLID exception.
size_t auxid_t
Identifier for a particular aux data item.
Definition AuxTypes.h:27