Loading [MathJax]/extensions/tex2jax.js
ROOT
Version v6.26
master
v6.34
v6.32
v6.30
v6.28
v6.24
v6.22
v6.20
v6.18
v6.16
v6.14
v6.12
v6.10
v6.08
v6.06
Reference Guide
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
PyException.cxx
Go to the documentation of this file.
1
// Bindings
2
#include "
CPyCppyy.h
"
3
#define CPYCPPYY_INTERNAL 1
4
#include "
CPyCppyy/PyException.h
"
5
#undef CPYCPPYY_INTERNAL
6
7
8
//______________________________________________________________________________
9
// C++ exception for throwing python exceptions
10
// ============================================
11
// Purpose: A C++ exception class for throwing python exceptions
12
// through C++ code.
13
// Created: Apr, 2004, Scott Snyder, from the version in D0's python_util.
14
//
15
// Note: Don't be tempted to declare the virtual functions defined here
16
// as inline.
17
// If you do, you may not be able to properly throw these
18
// exceptions across shared libraries.
19
20
21
//- constructors/destructor --------------------------------------------------
22
CPyCppyy::PyException::PyException
()
23
{
24
// default constructor
25
}
26
27
CPyCppyy::PyException::~PyException
() noexcept
28
{
29
// destructor
30
}
31
32
33
//- public members -----------------------------------------------------------
34
const
char
*
CPyCppyy::PyException::what
() const noexcept
35
{
36
// Return reason for throwing this exception: a python exception was raised.
37
return
"python exception"
;
38
}
CPyCppyy.h
PyException.h
CPyCppyy::PyException::PyException
PyException()
Definition
PyException.cxx:22
CPyCppyy::PyException::what
virtual const char * what() const noexcept
Definition
PyException.cxx:34
CPyCppyy::PyException::~PyException
virtual ~PyException() noexcept
Definition
PyException.cxx:27
bindings
pyroot
cppyy
CPyCppyy
src
PyException.cxx
ROOT v6-26 - Reference Guide Generated on Mon Sep 11 2023 21:02:09 (GVA Time) using Doxygen 1.9.8