ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArIdentifier
src
LArOnlID_Exception.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
LArIdentifier/LArOnlID_Exception.h
"
6
7
#include <cstdio>
8
9
10
LArOnlID_Exception::operator std::string ()
11
12
{
13
14
char
* l_str =
new
char
[200];
15
std::string newline(
" \n "
) ;
16
std::string errorMessage ;
17
sprintf(l_str,
"LArOnlID_Exception - Error code: %d "
, this->
code
());
18
errorMessage += std::string(l_str);
19
errorMessage += newline ;
20
errorMessage += this->
message
() ;
21
delete
[] l_str ;
22
return
errorMessage ;
23
24
}
LArOnlID_Exception.h
LArOnlID_Exception::code
void code(int l_code)
set error code number
Definition
LArOnlID_Exception.h:42
LArOnlID_Exception::message
void message(const std::string &l_message)
set error message
Definition
LArOnlID_Exception.h:32
Generated on
for ATLAS Offline Software by
1.17.0