ROOT
6.30.04
Reference Guide
All
Namespaces
Files
Pages
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.h
TPyException.h
bindings
pyroot
src
TPyException.cxx
Generated on Tue May 5 2020 14:02:18 for ROOT by
1.8.5