1#ifndef PYOPAL_PYCORE_EXCEPTIONTRANSLATION_H
2#define PYOPAL_PYCORE_EXCEPTIONTRANSLATION_H 1
5#include <structmember.h>
10#include <boost/python.hpp>
13namespace py = boost::python;
16namespace ExceptionTranslation {
24 PyErr_SetString(PyExc_RuntimeError, exception.what());
30 std::string msg = exception.what()+
" in C++ method "+exception.where();
31 PyErr_SetString(PyExc_RuntimeError, msg.c_str());
void translateOpalException(T const &exception)
void registerExceptions()
void translateException(T const &exception)