ATLAS Offline Software
LArCalorimeter
LArIdentifier
LArIdentifier
LArOnlID_Exception.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef LARHARDWAREID_EXCEPTION_H
6
#define LARHARDWAREID_EXCEPTION_H
7
8
#include <string>
9
16
class
LArOnlID_Exception
{
17
public
:
18
22
LArOnlID_Exception
() :
m_message
(
"No error message"
) ,
m_code
( 999 ) { }
23
27
LArOnlID_Exception
(
const
std::string& l_message ,
int
l_code) :
m_message
( l_message ) ,
m_code
( l_code ) { }
28
32
void
message
(
const
std::string& l_message) {
m_message
= l_message ;}
33
37
virtual
std::string
message
()
const
{
return
m_message
;}
38
42
void
code
(
int
l_code) {
m_code
= l_code ;}
43
57
virtual
int
code
()
const
{
return
m_code
;}
58
59
virtual
operator
std::string();
60
64
virtual
~LArOnlID_Exception
() {}
65
66
private
:
67
71
std::string
m_message
;
72
76
int
m_code
;
77
};
78
#endif //LARHARDWAREID_EXCEPTION_H
79
80
LArOnlID_Exception::message
void message(const std::string &l_message)
set error message
Definition:
LArOnlID_Exception.h:32
LArOnlID_Exception::message
virtual std::string message() const
return error message
Definition:
LArOnlID_Exception.h:37
LArOnlID_Exception::m_code
int m_code
error code
Definition:
LArOnlID_Exception.h:76
LArOnlID_Exception::m_message
std::string m_message
error message
Definition:
LArOnlID_Exception.h:71
LArOnlID_Exception::LArOnlID_Exception
LArOnlID_Exception()
default constructor
Definition:
LArOnlID_Exception.h:22
LArOnlID_Exception::code
virtual int code() const
return error code
Definition:
LArOnlID_Exception.h:57
LArOnlID_Exception
Exception class for LAr online Identifiers.
Definition:
LArOnlID_Exception.h:16
LArOnlID_Exception::code
void code(int l_code)
set error code number
Definition:
LArOnlID_Exception.h:42
LArOnlID_Exception::LArOnlID_Exception
LArOnlID_Exception(const std::string &l_message, int l_code)
constructor to be used
Definition:
LArOnlID_Exception.h:27
LArOnlID_Exception::~LArOnlID_Exception
virtual ~LArOnlID_Exception()
destructor
Definition:
LArOnlID_Exception.h:64
Generated on Sun Dec 22 2024 21:13:37 for ATLAS Offline Software by
1.8.18