ROOT
6.14/05
Reference Guide
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