17 #ifndef PYOPAL_PYCORE_EXCEPTIONTRANSLATION_H
18 #define PYOPAL_PYCORE_EXCEPTIONTRANSLATION_H 1
21 #include <structmember.h>
26 #include <boost/python.hpp>
29 namespace py = boost::python;
32 namespace ExceptionTranslation {
40 PyErr_SetString(PyExc_RuntimeError, exception.what());
46 std::string msg = exception.what()+
" in C++ method "+exception.where();
47 PyErr_SetString(PyExc_RuntimeError, msg.c_str());
void registerExceptions()
c Accompany it with the information you received as to the offer to distribute corresponding source complete source code means all the source code for all modules it plus any associated interface definition plus the scripts used to control compilation and installation of the executable as a special exception
void translateOpalException(T const &exception)
void translateException(T const &exception)