ATLAS Offline Software
Loading...
Searching...
No Matches
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
6
7#include <cstdio>
8
9
10LArOnlID_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}
void code(int l_code)
set error code number
void message(const std::string &l_message)
set error message