ATLAS Offline Software
CaloID_Exception.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 /* date of creation : 10/X/2002 */
6 
7 /* date of last modification : 10/X/2002 */
8 
9 #ifndef CALOID_EXCEPTION_H
10 #define CALOID_EXCEPTION_H
11 
12 #include <string>
13 
21 public:
22 
27 
31  CaloID_Exception(const std::string& lMessage , int lCode);
32 
36  void message(const std::string& lMessage);
37 
41  std::string message() const ;
42 
46  void code(int lCode) ;
47 
59  int code() const ;
60 
61  operator std::string() const;
62 
63 
64 private:
65 
69  std::string m_message;
70 
74  int m_code;
75 };
76 
77 
78 #endif //CALOID_EXCEPTION_H
CaloID_Exception
Exception class for Calo Identifiers.
Definition: CaloID_Exception.h:20
CaloID_Exception::m_message
std::string m_message
error message
Definition: CaloID_Exception.h:69
CaloID_Exception::code
int code() const
return error code
Definition: CaloID_Exception.cxx:28
CaloID_Exception::message
std::string message() const
return error message
Definition: CaloID_Exception.cxx:22
CaloID_Exception::CaloID_Exception
CaloID_Exception()
default constructor
Definition: CaloID_Exception.cxx:11
CaloID_Exception::m_code
int m_code
error code
Definition: CaloID_Exception.h:74