ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Calorimeter
CaloIdentifier
src
CaloID_Exception.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
CaloIdentifier/CaloID_Exception.h
"
6
#include <format>
7
8
9
CaloID_Exception::CaloID_Exception
() :
10
m_message
(
"No error message"
) ,
m_code
( 999 )
11
{ }
12
13
CaloID_Exception::CaloID_Exception
(
const
std::string& lMessage ,
int
lCode) :
14
m_message
( lMessage ) ,
m_code
( lCode )
15
{ }
16
17
void
CaloID_Exception::message
(
const
std::string& lMessage)
18
{
m_message
= lMessage ;}
19
20
const
std::string&
CaloID_Exception::message
()
const
21
{
return
m_message
;}
22
23
void
CaloID_Exception::code
(
int
lCode)
24
{
m_code
= lCode ;}
25
26
int
CaloID_Exception::code
()
const
27
{
return
m_code
;}
28
29
CaloID_Exception::operator std::string ()
const
30
31
{
32
return
33
std::format (
"CaloID_Exception - Error code: {} \n{} "
, this->
code
(),
34
this->
message
());
35
}
36
CaloID_Exception.h
CaloID_Exception::message
const std::string & message() const
return error message
Definition
CaloID_Exception.cxx:20
CaloID_Exception::code
int code() const
return error code
Definition
CaloID_Exception.cxx:26
CaloID_Exception::CaloID_Exception
CaloID_Exception()
default constructor
Definition
CaloID_Exception.cxx:9
CaloID_Exception::code
void code(int lCode)
set error code number
Definition
CaloID_Exception.cxx:23
CaloID_Exception::m_code
int m_code
error code
Definition
CaloID_Exception.h:74
CaloID_Exception::m_message
std::string m_message
error message
Definition
CaloID_Exception.h:69
CaloID_Exception::message
void message(const std::string &lMessage)
set error message
Definition
CaloID_Exception.cxx:17
Generated on
for ATLAS Offline Software by
1.17.0