ATLAS Offline Software
Loading...
Searching...
No Matches
Calorimeter/CaloUtils/CaloUtils/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-2020 CERN for the benefit of the ATLAS collaboration.
4 */
11
12
13#ifndef CALOUTILS_EXCEPTIONS_H
14#define CALOUTILS_EXCEPTIONS_H
15
16
17#include <stdexcept>
18#include <string>
19
20
21namespace CaloUtils {
22
23
31 : public std::runtime_error
32{
33public:
41 ExcBadToolConstantVersion (const std::string& toolName,
42 const std::string& constName,
43 unsigned int toolVersion,
44 unsigned int constVersion);
45};
46
47
54 : public std::runtime_error
55{
56public:
62 ExcConstantNotSet (const std::string& toolName,
63 const std::string& constName);
64};
65
66
73 : public std::runtime_error
74{
75public:
81 ExcConstantReset (const std::string& toolName,
82 const std::string& constName);
83};
84
85
93 : public std::runtime_error
94{
95public:
101 ExcBadContextlessRetrieve (const std::string& toolName,
102 const std::string& constName);
103};
104
105
106
112[[noreturn]]
113void throwExcBadContextlessRetrieve (const std::string& toolName,
114 const std::string& constName);
115
116
117} // namespace CaloUtils
118
119
120#endif // not CALOUTILS_EXCEPTIONS_H
ExcBadContextlessRetrieve(const std::string &toolName, const std::string &constName)
Constructor.
ExcBadToolConstantVersion(const std::string &toolName, const std::string &constName, unsigned int toolVersion, unsigned int constVersion)
Constructor.
ExcConstantNotSet(const std::string &toolName, const std::string &constName)
Constructor.
ExcConstantReset(const std::string &toolName, const std::string &constName)
Constructor.
void throwExcBadContextlessRetrieve(const std::string &toolName, const std::string &constName)
Throw a CaloUtils::ExcBadContextlessRetrieve exception.