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-2024 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:
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 {
398 public:
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 {
419 public:
426  const std::type_info& type);
427 };
428 
429 
437  : public std::runtime_error
438 {
439 public:
445  ExcInvalidThinningTarget (unsigned int clid,
446  const std::string& key);
447 };
448 
449 
456  : public std::runtime_error
457 {
458 public:
462  ExcBadIterSwap();
463 };
464 
465 
473  : public std::runtime_error
474 {
475 public:
480 };
481 
482 
486 [[noreturn]]
488 
489 
497  : public std::runtime_error
498 {
499 public:
504  ExcBadVarName (const std::string& name);
505 };
506 
507 
514  : public std::runtime_error
515 {
516 public:
521 };
522 
523 
527 [[noreturn]]
529 
530 
537  : public std::out_of_range
538 {
539 public:
546  ExcOutOfRange (const char* what,
547  size_t i,
548  size_t size);
549 };
550 
551 
558 [[noreturn]]
559 void throwExcOutOfRange (const char* what,
560  size_t i,
561  size_t size);
562 
563 
564 } // namespace SG
565 
566 
567 #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:459
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:199
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:412
SG::ExcBadAuxVar::ExcBadAuxVar
ExcBadAuxVar(SG::auxid_t auxid)
Constructor.
Definition: Control/AthContainers/Root/exceptions.cxx:105
SG::throwExcOutOfRange
void throwExcOutOfRange(const char *what, size_t i, size_t size)
Throw a SG::ExcOutOfRange exception.
SG::ExcInvalidThinningTarget
Exception — ThinningHandle target does not exist.
Definition: Control/AthContainers/AthContainers/exceptions.h:438
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::throwJaggedVecOverlappingCopy
void throwJaggedVecOverlappingCopy()
Throw a SG::ExcJaggedVecOverlappingCopy exception.
Definition: Control/AthContainers/Root/exceptions.cxx:690
SG::ExcOutOfRange
Exception — Range reference out of bounds.
Definition: Control/AthContainers/AthContainers/exceptions.h:538
SG::throwExcAllocOwnership
void throwExcAllocOwnership()
Throw a SG::ExcAllocOwnership exception.
Definition: Control/AthContainers/Root/exceptions.cxx:636
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:276
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:627
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:339
SG::throwExcMissingBaseInfo
void throwExcMissingBaseInfo(const std::type_info &ti)
Throw a SG::ExcMissingBaseInfo exception.
Definition: Control/AthContainers/Root/exceptions.cxx:447
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
SG::throwExcNonowningContainer
void throwExcNonowningContainer()
Throw a SG::ExcNonowningContainer exception.
Definition: Control/AthContainers/Root/exceptions.cxx:307
SG::auxid_t
size_t auxid_t
Identifier for a particular aux data item.
Definition: AuxTypes.h:27
SG::ExcOutOfRange::ExcOutOfRange
ExcOutOfRange(const char *what, size_t i, size_t size)
Constructor.
Definition: Control/AthContainers/Root/exceptions.cxx:718
SG::ExcInvalidThinningTarget::ExcInvalidThinningTarget
ExcInvalidThinningTarget(unsigned int clid, const std::string &key)
Constructor.
Definition: Control/AthContainers/Root/exceptions.cxx:602
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:391
lumiFormat.i
int i
Definition: lumiFormat.py:85
SG::ExcBadVarName::ExcBadVarName
ExcBadVarName(const std::string &name)
Constructor.
Definition: Control/AthContainers/Root/exceptions.cxx:662
SG::ExcAllocOwnership
Exception — Bad allocation ownership.
Definition: Control/AthContainers/AthContainers/exceptions.h:474
SG::ExcBadIterSwap::ExcBadIterSwap
ExcBadIterSwap()
Constructor.
Definition: Control/AthContainers/Root/exceptions.cxx:615
SG::ExcJaggedVecOverlappingCopy
Exception — Overlapping copies not implemented for jagged vectors.
Definition: Control/AthContainers/AthContainers/exceptions.h:515
SG::ExcNonowningContainer
Exception — Attempted to insert a unique_ptr to a non-owning container.
Definition: Control/AthContainers/AthContainers/exceptions.h:208
SG::AuxVarFlags
AuxVarFlags
Additional flags to qualify an auxiliary variable.
Definition: AuxTypes.h:58
SG::ExcConstAuxData::ExcConstAuxData
ExcConstAuxData(const std::string &op, SG::auxid_t auxid=null_auxid)
Constructor.
Definition: Control/AthContainers/Root/exceptions.cxx:131
SG::ExcFlagMismatch
Exception — Flag mismatch for aux variable.
Definition: Control/AthContainers/AthContainers/exceptions.h:376
SG::throwExcMissingViewVectorCLID
void throwExcMissingViewVectorCLID(const std::type_info &ti)
Throw a SG::ExcMissingViewVectorCLID exception.
Definition: Control/AthContainers/Root/exceptions.cxx:425
SG::ExcMissingBaseInfo::ExcMissingBaseInfo
ExcMissingBaseInfo(const std::type_info &ti)
Constructor.
Definition: Control/AthContainers/Root/exceptions.cxx:437
python.ExitCodes.what
def what(code)
Definition: ExitCodes.py:73
SG::ExcBadPrivateStore::ExcBadPrivateStore
ExcBadPrivateStore(const std::string &op)
Constructor.
Definition: Control/AthContainers/Root/exceptions.cxx:159
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
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::ExcLinkMismatch::ExcLinkMismatch
ExcLinkMismatch(SG::auxid_t auxid, const std::type_info &type, SG::auxid_t existing_linked_id, SG::auxid_t requested_linked_id)
Constructor.
Definition: Control/AthContainers/Root/exceptions.cxx:544
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:353
SG::ExcInsertMoveOwnershipMismatch
Exception — Ownership mismatch for insertMove.
Definition: Control/AthContainers/AthContainers/exceptions.h:360
SG::ExcNoLinkedVar
Exception — Linked variable not found.
Definition: Control/AthContainers/AthContainers/exceptions.h:418
SG::ExcNoLinkedVar::ExcNoLinkedVar
ExcNoLinkedVar(SG::auxid_t auxid, const std::type_info &type)
Constructor.
Definition: Control/AthContainers/Root/exceptions.cxx:575
SG::ExcNonowningContainer::ExcNonowningContainer
ExcNonowningContainer()
Constructor.
Definition: Control/AthContainers/Root/exceptions.cxx:298
SG::ExcUntrackedSetStore::ExcUntrackedSetStore
ExcUntrackedSetStore()
Constructor.
Definition: Control/AthContainers/Root/exceptions.cxx:143
AuxTypes.h
Basic definitions for auxiliary types.
SG::ExcBadPrivateStore
Exception — Bad use of private store.
Definition: Control/AthContainers/AthContainers/exceptions.h:113
SG::ExcJaggedVecOverlappingCopy::ExcJaggedVecOverlappingCopy
ExcJaggedVecOverlappingCopy()
Constructor.
Definition: Control/AthContainers/Root/exceptions.cxx:681
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
SG::ExcLinkMismatch
Exception — Linked variable mismatch.
Definition: Control/AthContainers/AthContainers/exceptions.h:397
SG::ExcDVToELV::ExcDVToELV
ExcDVToELV(const std::string &detail)
Constructor.
Definition: Control/AthContainers/Root/exceptions.cxx:379
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:237
SG::ExcFlagMismatch::ExcFlagMismatch
ExcFlagMismatch(SG::auxid_t auxid, const std::type_info &type, SG::AuxVarFlags existing_flags, SG::AuxVarFlags requested_flags)
Constructor.
Definition: Control/AthContainers/Root/exceptions.cxx:508
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:70
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:457
SG::throwExcViewVectorNotView
void throwExcViewVectorNotView()
Throw a SG::ExcViewVectorNotView exception.
Definition: Control/AthContainers/Root/exceptions.cxx:400
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:498
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37