Logo ROOT   6.16/01
Reference Guide
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 ---------------------------------------------------------------------
24
25
26//- constructors/destructor --------------------------------------------------
28{
29// default constructor
30}
31
33{
34// destructor
35}
36
37
38//- public members -----------------------------------------------------------
39const char* PyROOT::TPyException::what() const noexcept
40{
41// Return reason for throwing this exception: a python exception was raised.
42 return "python exception";
43}
#define ClassImp(name)
Definition: Rtypes.h:363
virtual ~TPyException() noexcept
virtual const char * what() const noexcept