Belle II Software  release-05-01-25
Exception.cc
1 #include "daq/slc/base/Exception.h"
2 
3 using namespace Belle2;
4 
5 Exception::Exception()
6  : m_comment(""), m_err(0)
7 {
8 }
9 
10 Exception::Exception(const std::string& comment)
11  : m_comment(comment), m_err(0)
12 {
13 }
14 
15 Exception::Exception(const std::string& comment,
16  int err)
17  : m_comment(comment), m_err(err)
18 {
19 }
20 
21 #if __GNUC__ >= 7
22 const char* Exception::what() const noexcept
23 #else
24 const char* Exception::what() const throw()
25 #endif
26 {
27  return m_comment.c_str();
28 }
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19