ATLAS Offline Software
Loading...
Searching...
No Matches
CaloID_Exception.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 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
19
21public:
22
27
31 CaloID_Exception(const std::string& lMessage , int lCode);
32
36 void message(const std::string& lMessage);
37
41 const std::string& message() const ;
42
46 void code(int lCode) ;
47
59 int code() const ;
60
61 operator std::string() const;
62
63
64private:
65
69 std::string m_message;
70
74 int m_code;
75};
76
77
78#endif //CALOID_EXCEPTION_H
const std::string & message() const
return error message
int code() const
return error code
CaloID_Exception()
default constructor
int m_code
error code
std::string m_message
error message