ATLAS Offline Software
Loading...
Searching...
No Matches
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
15
17public:
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
64private:
65
69 std::string m_message;
70
74 int m_code;
75};
76#endif //TILEID_EXCEPTION_H
77
TileID_Exception(const std::string &l_message, int l_code)
constructor to be used
void code(int l_code)
set error code number
const std::string & message() const
return error message
int m_code
error code
std::string m_message
error message
TileID_Exception()
default constructor
void message(const std::string &l_message)
set error message
int code() const
return error code