ATLAS Offline Software
Loading...
Searching...
No Matches
LArID_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/* Generated by Together */
6
7/* date of creation : 12/06/2001 */
8
9#ifndef LAROFFLINEID_EXCEPTION_H
10#define LAROFFLINEID_EXCEPTION_H
11
12#include <string>
13
19
21public:
22
26 LArID_Exception() : m_message("No error message") , m_code( 999 ) { }
27
31 LArID_Exception(const std::string& l_message , int l_code) : m_message ( l_message ) , m_code ( l_code ) { }
32
36 void message(const std::string& l_message) { m_message = l_message ;}
37
41 const std::string& message() const { return m_message;}
42
46 void code(int l_code) { m_code = l_code ;}
47
61 int code() const { return m_code;}
62
63 operator std::string() const;
64
65
66private:
67
71 std::string m_message;
72
76 int m_code;
77};
78#endif //LAROFFLINEID_EXCEPTION_H
79
void message(const std::string &l_message)
set error message
std::string m_message
error message
int code() const
return error code
void code(int l_code)
set error code number
const std::string & message() const
return error message
LArID_Exception(const std::string &l_message, int l_code)
constructor to be used
LArID_Exception()
default constructor
int m_code
error code