Belle II Software
release-05-01-25
Exception.h
1
#ifndef _Belle2_Exception_hh
2
#define _Belle2_Exception_hh
3
4
#include <exception>
5
#include <string>
6
7
namespace
Belle2
{
13
class
Exception
:
public
std::exception {
14
15
public
:
16
Exception
();
17
Exception
(
const
std::string&);
18
Exception
(
const
std::string&,
int
err);
19
#if __GNUC__ >= 7
20
virtual
~
Exception
() {}
21
#else
22
virtual
~
Exception
()
throw
() {}
23
#endif
24
25
public
:
26
#if __GNUC__ >= 7
27
virtual
const
char
* what()
const
noexcept;
28
#else
29
virtual
const
char
* what()
const
throw
();
30
#endif
31
int
err()
const
{
return
m_err; }
32
33
protected
:
34
std::string m_comment;
35
int
m_err;
36
37
};
38
40
}
41
42
#endif
Belle2
Abstract base class for different kinds of events.
Definition:
MillepedeAlgorithm.h:19
Belle2::Exception
Definition:
Exception.h:13
daq
slc
base
include
Exception.h
Generated on Fri Nov 5 2021 03:49:52 for Belle II Software by
1.8.17