ATLAS Offline Software
Database/AthenaPOOL/AthenaPoolCnvSvc/AthenaPoolCnvSvc/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 /*
4  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
5 */
6 
15 #ifndef ATHENAPOOLCNVSVC_EXCEPTIONS_H
16 #define ATHENAPOOLCNVSVC_EXCEPTIONS_H
17 
18 
20 #include <stdexcept>
21 #include <typeinfo>
22 #include <string>
23 
24 
25 namespace AthenaPoolCnvSvc {
26 
27 
34  : public std::runtime_error
35 {
36 public:
41  ExcNoDictForClass (const std::type_info& ti);
42 };
43 
44 
49 [[noreturn]]
50 void throwExcNoDictForClass (const std::type_info& ti);
51 
52 
59  : public std::runtime_error
60 {
61 public:
67  ExcUnsupportedVersion (const std::type_info& ti, const Guid& guid);
68 };
69 
70 
76 [[noreturn]]
77 void throwExcUnsupportedVersion (const std::type_info& ti, const Guid& guid);
78 
79 
86  : public std::runtime_error
87 {
88 public:
97  ExcCaughtException (const char* fnname,
98  const char* action,
99  const std::exception& ex,
100  const std::type_info& ti,
101  const std::string& key);
102 };
103 
104 
115 [[noreturn]]
116 void throwExcCaughtException (const char* fnname,
117  const char* action,
118  const std::exception& ex,
119  const std::type_info& ti,
120  const std::string& key);
121 
122 
123 } // namespace AthenaPoolCnvSvc
124 
125 
126 #endif // not EXCEPTIONS_H
AthenaPoolCnvSvc::throwExcUnsupportedVersion
void throwExcUnsupportedVersion(const std::type_info &ti, const Guid &guid)
Throw a AthenaPoolCnvSvc::ExcUnsupportedVersion exception.
Definition: Database/AthenaPOOL/AthenaPoolCnvSvc/src/exceptions.cxx:86
AthenaPoolCnvSvc::throwExcCaughtException
void throwExcCaughtException(const char *fnname, const char *action, const std::exception &ex, const std::type_info &ti, const std::string &key)
Throw a AthenaPoolCnvSvc::ExcCaughtException exception.
Definition: Database/AthenaPOOL/AthenaPoolCnvSvc/src/exceptions.cxx:140
AthenaPoolCnvSvc::ExcNoDictForClass
Exception — Can't find dictionary information for class.
Definition: Database/AthenaPOOL/AthenaPoolCnvSvc/AthenaPoolCnvSvc/exceptions.h:35
AthenaPoolCnvSvc::ExcNoDictForClass::ExcNoDictForClass
ExcNoDictForClass(const std::type_info &ti)
Constructor.
Definition: Database/AthenaPOOL/AthenaPoolCnvSvc/src/exceptions.cxx:37
AthenaPoolCnvSvc::ExcCaughtException::ExcCaughtException
ExcCaughtException(const char *fnname, const char *action, const std::exception &ex, const std::type_info &ti, const std::string &key)
Constructor.
Definition: Database/AthenaPOOL/AthenaPoolCnvSvc/src/exceptions.cxx:120
calibdata.exception
exception
Definition: calibdata.py:496
AthenaPoolCnvSvc::ExcUnsupportedVersion
Exception — Unsupported persistent version of CLASS found.
Definition: Database/AthenaPOOL/AthenaPoolCnvSvc/AthenaPoolCnvSvc/exceptions.h:60
pool_uuid.guid
guid
Definition: pool_uuid.py:112
AthenaPoolCnvSvc::throwExcNoDictForClass
void throwExcNoDictForClass(const std::type_info &ti)
Throw a AthenaPoolCnvSvc::ExcNoDictForClass exception.
Definition: Database/AthenaPOOL/AthenaPoolCnvSvc/src/exceptions.cxx:47
Guid
This class provides a encapsulation of a GUID/UUID/CLSID/IID data structure (128 bit number).
Definition: Guid.h:20
python.CaloScaleNoiseConfig.action
action
Definition: CaloScaleNoiseConfig.py:77
AthenaPoolCnvSvc::ExcCaughtException
Exception — Caught an exception during conversion.
Definition: Database/AthenaPOOL/AthenaPoolCnvSvc/AthenaPoolCnvSvc/exceptions.h:87
Guid.h
This file contains the class definition for the Guid class (migrated from POOL).
AthenaPoolCnvSvc::ExcUnsupportedVersion::ExcUnsupportedVersion
ExcUnsupportedVersion(const std::type_info &ti, const Guid &guid)
Constructor.
Definition: Database/AthenaPOOL/AthenaPoolCnvSvc/src/exceptions.cxx:74
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37
AthenaPoolCnvSvc
Definition: Database/AthenaPOOL/AthenaPoolCnvSvc/AthenaPoolCnvSvc/debug.h:26