// @(#)root/pyroot:$Name:  $:$Id: TPyException.cxx,v 1.2 2005/05/06 10:08:53 brun Exp $
// Author: Scott Snyder, Apr 2004

// Bindings
#include "PyROOT.h"
#include "TPyException.h"


//______________________________________________________________________________
//                 C++ exception for throwing python exceptions
//                 ============================================
// Purpose: A C++ exception class for throwing python exceptions
//          through C++ code.
// Created: Apr, 2004, sss, from the version in D0's python_util.
//
// Note: Don't be tempted to declare the virtual functions defined here
//       as inline.
//       If you do, you may not be able to properly throw these
//       exceptions across shared libraries.


//- data ---------------------------------------------------------------------
ClassImp(PyROOT::TPyException)
PyObject* PyROOT::TPyExceptionMagic = (PyObject*)-1;


//- constructors/destructor --------------------------------------------------
 PyROOT::TPyException::TPyException()
{
// default constructor
}

 PyROOT::TPyException::~TPyException() throw()
{
// destructor
}


//- public members -----------------------------------------------------------
 const char* PyROOT::TPyException::what() const throw()
{
// Return reason for throwing this exception: a python exception was raised.
   return "python exception";
}


ROOT page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.