ATLAS Offline Software
Loading...
Searching...
No Matches
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
13
14
15#ifndef ATHENAPOOLCNVSVC_EXCEPTIONS_H
16#define ATHENAPOOLCNVSVC_EXCEPTIONS_H
17
18
20#include <stdexcept>
21#include <typeinfo>
22#include <string>
23
24
25namespace AthenaPoolCnvSvc {
26
27
34 : public std::runtime_error
35{
36public:
41 ExcNoDictForClass (const std::type_info& ti);
42};
43
44
49[[noreturn]]
50void throwExcNoDictForClass (const std::type_info& ti);
51
52
59 : public std::runtime_error
60{
61public:
67 ExcUnsupportedVersion (const std::type_info& ti, const Guid& guid);
68};
69
70
76[[noreturn]]
77void throwExcUnsupportedVersion (const std::type_info& ti, const Guid& guid);
78
79
86 : public std::runtime_error
87{
88public:
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]]
116void 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
This file contains the class definition for the Guid class (migrated from POOL).
ExcCaughtException(const char *fnname, const char *action, const std::exception &ex, const std::type_info &ti, const std::string &key)
Constructor.
ExcUnsupportedVersion(const std::type_info &ti, const Guid &guid)
Constructor.
This class provides a encapsulation of a GUID/UUID/CLSID/IID data structure (128 bit number).
Definition Guid.h:25
void throwExcUnsupportedVersion(const std::type_info &ti, const Guid &guid)
Throw a AthenaPoolCnvSvc::ExcUnsupportedVersion exception.
void throwExcNoDictForClass(const std::type_info &ti)
Throw a AthenaPoolCnvSvc::ExcNoDictForClass exception.
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.