ATLAS Offline Software
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-2023 CERN for the benefit of the ATLAS collaboration
4 */
13 #ifndef ATHCONTAINERS_EXCEPTIONS_H
14 #define ATHCONTAINERS_EXCEPTIONS_H
15 
16 
18 #include <stdexcept>
19 #include <typeinfo>
20 #include <string>
21 
22 
23 namespace SG {
24 
25 
33  : public std::runtime_error
34 {
35 public:
40  ExcNoAuxStore (SG::auxid_t auxid);
41 
42 
47  ExcNoAuxStore (const char* op);
48 };
49 
50 
58  : public std::runtime_error
59 {
60 public:
65  ExcBadAuxVar (SG::auxid_t auxid);
66 };
67 
68 
76  : public std::runtime_error
77 {
78 public:
84  ExcConstAuxData (const std::string& op, SG::auxid_t auxid = null_auxid);
85 };
86 
87 
94  : public std::runtime_error
95 {
96 public:
101 };
102 
103 
104 
112  : public std::runtime_error
113 {
114 public:
119  ExcBadPrivateStore (const std::string& op);
120 };
121 
122 
123 
131  : public std::runtime_error
132 {
133 public:
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 {
161 public:
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 {
184 public:
189  ExcStoreLocked (SG::auxid_t auxid);
190 
191 
196  ExcStoreLocked (const char* op);
197 };
198 
199 
207  : public std::runtime_error
208 {
209 public:
214 };
215 
216 
220 [[noreturn]]
222 
223 
232  : public std::runtime_error
233 {
234 public:
241  ExcUnknownAuxItem (const std::string& name,
242  const std::string& clsname = "",
243  const std::type_info* typ = 0);
244 };
245 
246 
253 [[noreturn]]
254 void 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 {
269 public:
274  ExcDVToELV (const std::string& detail);
275 };
276 
277 
284  : public std::runtime_error
285 {
286 public:
291 };
292 
293 
297 [[noreturn]]
299 
300 
309  : public std::runtime_error
310 {
311 public:
316  ExcMissingViewVectorCLID (const std::type_info& ti);
317 };
318 
319 
324 [[noreturn]]
325 void throwExcMissingViewVectorCLID (const std::type_info& ti);
326 
327 
334  : public std::runtime_error
335 {
336 public:
341  ExcMissingBaseInfo (const std::type_info& ti);
342 };
343 
344 
349 [[noreturn]]
350 void throwExcMissingBaseInfo (const std::type_info& ti);
351 
352 
359  : public std::runtime_error
360 {
361 public:
366 };
367 
368 
375  : public std::runtime_error
376 {
377 public:
384  const std::type_info& type);
385 };
386 
387 
395  : public std::runtime_error
396 {
397 public:
403  ExcInvalidThinningTarget (unsigned int clid,
404  const std::string& key);
405 };
406 
407 
414  : public std::runtime_error
415 {
416 public:
420  ExcBadIterSwap();
421 };
422 
423 
431  : public std::runtime_error
432 {
433 public:
438 };
439 
440 
444 [[noreturn]]
446 
447 
455  : public std::runtime_error
456 {
457 public:
462  ExcBadVarName (const std::string& name);
463 };
464 
465 
466 } // namespace SG
467 
468 
469 #endif // not ATHCONTAINERS_EXCEPTIONS_H
SG::ExcDVToELV
Exception — Can't convert DataVector to vector of ElementLinks.
Definition: Control/AthContainers/AthContainers/exceptions.h:268
SG::ExcInsertMoveOwnershipMismatch::ExcInsertMoveOwnershipMismatch
ExcInsertMoveOwnershipMismatch()
Constructor.
Definition: Control/AthContainers/Root/exceptions.cxx:456
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
SG::ExcAuxTypeMismatch::ExcAuxTypeMismatch
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.
Definition: Control/AthContainers/Root/exceptions.cxx:196
SG::ExcUntrackedSetStore
Exception — Attempt to set aux data store on container that doesn't track indices,...
Definition: Control/AthContainers/AthContainers/exceptions.h:95
SG::ExcMissingViewVectorCLID::ExcMissingViewVectorCLID
ExcMissingViewVectorCLID(const std::type_info &ti)
Constructor.
Definition: Control/AthContainers/Root/exceptions.cxx:409
SG::ExcBadAuxVar::ExcBadAuxVar
ExcBadAuxVar(SG::auxid_t auxid)
Constructor.
Definition: Control/AthContainers/Root/exceptions.cxx:102
SG::ExcInvalidThinningTarget
Exception — ThinningHandle target does not exist.
Definition: Control/AthContainers/AthContainers/exceptions.h:396
SG::ExcStoreLocked
Exception — Attempted to modify auxiliary data in a locked store.
Definition: Control/AthContainers/AthContainers/exceptions.h:183
SG::ExcViewVectorNotView
Exception — ViewVector not in view mode.
Definition: Control/AthContainers/AthContainers/exceptions.h:285
SG::throwExcAllocOwnership
void throwExcAllocOwnership()
Throw a SG::ExcAllocOwnership exception.
Definition: Control/AthContainers/Root/exceptions.cxx:544
SG::ExcMissingViewVectorCLID
Exception — Missing CLID for ViewVector.
Definition: Control/AthContainers/AthContainers/exceptions.h:310
detail
Definition: extract_histogram_tag.cxx:14
SG::ExcStoreLocked::ExcStoreLocked
ExcStoreLocked(SG::auxid_t auxid)
Constructor.
Definition: Control/AthContainers/Root/exceptions.cxx:273
SG::ExcConstAuxData
Exception — Non-const operation performed on const aux data.
Definition: Control/AthContainers/AthContainers/exceptions.h:77
SG::ExcAllocOwnership::ExcAllocOwnership
ExcAllocOwnership()
Constructor.
Definition: Control/AthContainers/Root/exceptions.cxx:535
SG::ExcAtomicMismatch::ExcAtomicMismatch
ExcAtomicMismatch(SG::auxid_t auxid, const std::type_info &type)
Constructor.
Definition: Control/AthContainers/Root/exceptions.cxx:483
SG::ExcUnknownAuxItem
Exception — Unknown aux data item.
Definition: Control/AthContainers/AthContainers/exceptions.h:233
SG::ExcUnknownAuxItem::ExcUnknownAuxItem
ExcUnknownAuxItem(const std::string &name, const std::string &clsname="", const std::type_info *typ=0)
Constructor.
Definition: Control/AthContainers/Root/exceptions.cxx:336
SG::throwExcMissingBaseInfo
void throwExcMissingBaseInfo(const std::type_info &ti)
Throw a SG::ExcMissingBaseInfo exception.
Definition: Control/AthContainers/Root/exceptions.cxx:444
SG::throwExcNonowningContainer
void throwExcNonowningContainer()
Throw a SG::ExcNonowningContainer exception.
Definition: Control/AthContainers/Root/exceptions.cxx:304
SG::auxid_t
size_t auxid_t
Identifier for a particular aux data item.
Definition: AuxTypes.h:27
SG::ExcInvalidThinningTarget::ExcInvalidThinningTarget
ExcInvalidThinningTarget(unsigned int clid, const std::string &key)
Constructor.
Definition: Control/AthContainers/Root/exceptions.cxx:510
SG::ExcBadAuxVar
Exception — Attempt to retrieve nonexistent aux data item.
Definition: Control/AthContainers/AthContainers/exceptions.h:59
SG::ExcViewVectorNotView::ExcViewVectorNotView
ExcViewVectorNotView()
Constructor.
Definition: Control/AthContainers/Root/exceptions.cxx:388
SG::ExcBadVarName::ExcBadVarName
ExcBadVarName(const std::string &name)
Constructor.
Definition: Control/AthContainers/Root/exceptions.cxx:570
SG::ExcAllocOwnership
Exception — Bad allocation ownership.
Definition: Control/AthContainers/AthContainers/exceptions.h:432
SG::ExcBadIterSwap::ExcBadIterSwap
ExcBadIterSwap()
Constructor.
Definition: Control/AthContainers/Root/exceptions.cxx:523
SG::ExcNonowningContainer
Exception — Attempted to insert a unique_ptr to a non-owning container.
Definition: Control/AthContainers/AthContainers/exceptions.h:208
SG::ExcConstAuxData::ExcConstAuxData
ExcConstAuxData(const std::string &op, SG::auxid_t auxid=null_auxid)
Constructor.
Definition: Control/AthContainers/Root/exceptions.cxx:128
SG::throwExcMissingViewVectorCLID
void throwExcMissingViewVectorCLID(const std::type_info &ti)
Throw a SG::ExcMissingViewVectorCLID exception.
Definition: Control/AthContainers/Root/exceptions.cxx:422
SG::ExcMissingBaseInfo::ExcMissingBaseInfo
ExcMissingBaseInfo(const std::type_info &ti)
Constructor.
Definition: Control/AthContainers/Root/exceptions.cxx:434
SG::ExcBadPrivateStore::ExcBadPrivateStore
ExcBadPrivateStore(const std::string &op)
Constructor.
Definition: Control/AthContainers/Root/exceptions.cxx:156
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
SG::ExcInsertionInBaseClass
Exception — Attempted to do OP on a BASE base class of COMPLETE; can only be done on the most-derived...
Definition: Control/AthContainers/AthContainers/exceptions.h:160
SG::throwExcUnknownAuxItem
void throwExcUnknownAuxItem(const std::string &name, const std::string &clsname="", const std::type_info *typ=0)
Throw a SG::ExcUnknownAuxItem exception.
Definition: Control/AthContainers/Root/exceptions.cxx:350
SG::ExcInsertMoveOwnershipMismatch
Exception — Ownership mismatch for insertMove.
Definition: Control/AthContainers/AthContainers/exceptions.h:360
SG::ExcNonowningContainer::ExcNonowningContainer
ExcNonowningContainer()
Constructor.
Definition: Control/AthContainers/Root/exceptions.cxx:295
SG::ExcUntrackedSetStore::ExcUntrackedSetStore
ExcUntrackedSetStore()
Constructor.
Definition: Control/AthContainers/Root/exceptions.cxx:140
AuxTypes.h
Basic definitions for auxiliary types.
SG::ExcBadPrivateStore
Exception — Bad use of private store.
Definition: Control/AthContainers/AthContainers/exceptions.h:113
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
SG::ExcAtomicMismatch
Exception — Non-atomic access to atomic aux variable.
Definition: Control/AthContainers/AthContainers/exceptions.h:376
SG::ExcDVToELV::ExcDVToELV
ExcDVToELV(const std::string &detail)
Constructor.
Definition: Control/AthContainers/Root/exceptions.cxx:376
SG::ExcInsertionInBaseClass::ExcInsertionInBaseClass
ExcInsertionInBaseClass(const char *op, const std::type_info &base_type, const std::type_info &complete_type)
Constructor.
Definition: Control/AthContainers/Root/exceptions.cxx:234
SG::ExcMissingBaseInfo
Exception — Missing BaseInfo.
Definition: Control/AthContainers/AthContainers/exceptions.h:335
SG::ExcNoAuxStore::ExcNoAuxStore
ExcNoAuxStore(SG::auxid_t auxid)
Constructor.
Definition: Control/AthContainers/Root/exceptions.cxx:67
SG::ExcNoAuxStore
Exception — Aux data requested from object with no store.
Definition: Control/AthContainers/AthContainers/exceptions.h:34
SG::ExcBadIterSwap
Exception — Bad iter_swap.
Definition: Control/AthContainers/AthContainers/exceptions.h:415
SG::throwExcViewVectorNotView
void throwExcViewVectorNotView()
Throw a SG::ExcViewVectorNotView exception.
Definition: Control/AthContainers/Root/exceptions.cxx:397
SG::ExcAuxTypeMismatch
Exception — Type mismatch for aux variable.
Definition: Control/AthContainers/AthContainers/exceptions.h:132
SG::ExcBadVarName
Exception — Bad name for auxiliary variable.
Definition: Control/AthContainers/AthContainers/exceptions.h:456
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37