Beispiel #1
0
void
translate_std_invalid_argument( std::invalid_argument e)
{
	PyErr_SetString( PyExc_ValueError, e.what());
}
Beispiel #2
0
void translator2(std::invalid_argument const& x) {
    PyErr_SetString(PyExc_AttributeError, x.what());
}