Belle II Software
release-05-02-19
Main Page
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Typedefs
a
b
c
d
e
h
i
l
m
n
p
r
s
t
v
w
Enumerations
Enumerator
c
d
f
p
t
u
v
w
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerations
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
Enumerator
a
b
c
d
e
f
g
h
k
l
m
n
o
p
r
s
t
u
v
w
z
Related Functions
b
c
d
g
i
o
r
s
t
Files
File List
File Members
All
Functions
FrameworkExceptions.h
1
#pragma once
2
/**************************************************************************
3
* BASF2 (Belle Analysis Framework 2) *
4
* Copyright(C) 2010 - Belle II Collaboration *
5
* *
6
* Author: The Belle II Collaboration *
7
* Contributors: Andreas Moll, Martin Ritter *
8
* *
9
* This software is provided "as is" without any warranty. *
10
**************************************************************************/
11
12
#include <boost/format.hpp>
13
14
namespace
Belle2
{
38
#define BELLE2_DEFINE_EXCEPTION(ClassName, Message) \
39
class ClassName : public std::runtime_error { \
40
public: \
41
ClassName(): std::runtime_error(""), m_format(Message) { } \
42
~ClassName() noexcept {} \
43
virtual const char * what() const noexcept override { \
44
m_finalStr = m_format.str();\
45
return m_finalStr.c_str();\
46
}\
47
template <class T> ClassName& operator<<(const T& param) {\
48
m_format % param;\
49
return *this;\
50
}\
51
private:\
52
boost::format m_format;\
53
mutable std::string m_finalStr;\
54
};
55
56
}
Belle2
Abstract base class for different kinds of events.
Definition:
MillepedeAlgorithm.h:19
framework
core
include
FrameworkExceptions.h
Generated on Tue Jan 4 2022 02:56:14 for Belle II Software by
1.8.17