Loading [MathJax]/extensions/tex2jax.js
ROOT
6.12/07
Reference Guide
ROOT Home Page
Main Page
Tutorials
User's Classes
+
Namespaces
Namespace List
+
Namespace 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
l
m
n
o
p
q
r
s
u
w
x
+
Enumerations
a
e
f
g
m
p
t
w
y
+
Enumerator
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
w
+
All Classes
Class List
Class Index
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
k
l
m
n
o
p
r
s
t
u
v
w
x
y
+
Enumerations
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
w
y
+
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
+
Properties
f
+
Related 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
z
+
Files
File List
+
File Members
+
All
1
2
3
4
5
6
7
8
9
_
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
+
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
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Enumerations
c
e
f
i
l
m
p
r
u
x
+
Enumerator
a
c
d
e
f
g
h
i
k
l
n
o
p
r
s
v
w
+
Macros
1
2
3
4
5
6
7
8
9
_
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
Release Notes
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
bindings
pyroot
src
TPyException.cxx
Go to the documentation of this file.
1
// @(#)root/pyroot:$Id$
2
// Author: Scott Snyder, Apr 2004
3
4
// Bindings
5
#include "
PyROOT.h
"
6
#include "
TPyException.h
"
7
8
9
//______________________________________________________________________________
10
// C++ exception for throwing python exceptions
11
// ============================================
12
// Purpose: A C++ exception class for throwing python exceptions
13
// through C++ code.
14
// Created: Apr, 2004, sss, from the version in D0's python_util.
15
//
16
// Note: Don't be tempted to declare the virtual functions defined here
17
// as inline.
18
// If you do, you may not be able to properly throw these
19
// exceptions across shared libraries.
20
21
22
//- data ---------------------------------------------------------------------
23
ClassImp
(
PyROOT::TPyException
);
24
25
26
//- constructors/destructor --------------------------------------------------
27
PyROOT::TPyException::TPyException
()
28
{
29
// default constructor
30
}
31
32
PyROOT::TPyException::~TPyException
() noexcept
33
{
34
// destructor
35
}
36
37
38
//- public members -----------------------------------------------------------
39
const
char
*
PyROOT::TPyException::what
() const noexcept
40
{
41
// Return reason for throwing this exception: a python exception was raised.
42
return
"python exception"
;
43
}
PyROOT::TPyException
Definition:
TPyException.h:42
PyROOT::TPyException::what
virtual const char * what() const noexcept
Definition:
TPyException.cxx:39
PyROOT::TPyException::~TPyException
virtual ~TPyException() noexcept
Definition:
TPyException.cxx:32
ClassImp
#define ClassImp(name)
Definition:
Rtypes.h:359
PyROOT::TPyException::TPyException
TPyException()
Definition:
TPyException.cxx:27
PyROOT.h
TPyException.h