8 #include <boost/python/exception_translator.hpp>
18 PyErr_SetString(PyExc_RuntimeError, e.
what());
22 if (check_registration<eigenpy::Exception>())
return;
24 pyType = boost::python::class_<eigenpy::Exception>(
25 "Exception", boost::python::init<std::string>())
29 boost::python::register_exception_translator<eigenpy::Exception>(