ATLAS Offline Software
Calorimeter
CaloIdentifier
CaloIdentifier
TileID_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
#ifndef TILEID_EXCEPTION_H
6
#define TILEID_EXCEPTION_H
7
8
#include <string>
9
16
class
TileID_Exception
{
17
public
:
18
22
TileID_Exception
() :
m_message
(
"No error message"
) ,
m_code
( 999 ) { }
23
27
TileID_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
const
std::string&
message
()
const
{
return
m_message
;}
38
42
void
code
(
int
l_code) {
m_code
= l_code ;}
43
59
int
code
()
const
{
return
m_code
;}
60
61
operator
std::string()
const
;
62
63
64
private
:
65
69
std::string
m_message
;
70
74
int
m_code
;
75
};
76
#endif //TILEID_EXCEPTION_H
77
TileID_Exception::m_message
std::string m_message
error message
Definition:
TileID_Exception.h:69
TileID_Exception::m_code
int m_code
error code
Definition:
TileID_Exception.h:74
TileID_Exception::message
const std::string & message() const
return error message
Definition:
TileID_Exception.h:37
TileID_Exception::code
void code(int l_code)
set error code number
Definition:
TileID_Exception.h:42
TileID_Exception::TileID_Exception
TileID_Exception(const std::string &l_message, int l_code)
constructor to be used
Definition:
TileID_Exception.h:27
TileID_Exception
Exception class for Tile Identifiers.
Definition:
TileID_Exception.h:16
TileID_Exception::message
void message(const std::string &l_message)
set error message
Definition:
TileID_Exception.h:32
TileID_Exception::TileID_Exception
TileID_Exception()
default constructor
Definition:
TileID_Exception.h:22
TileID_Exception::code
int code() const
return error code
Definition:
TileID_Exception.h:59
Generated on Thu Nov 7 2024 21:28:15 for ATLAS Offline Software by
1.8.18