¡@

Home 

python Programming Glossary: mycppexception

boost::python Export Custom Exception

http://stackoverflow.com/questions/2261858/boostpython-export-custom-exception

try my_cpp_module.my_cpp_function except my_cpp_module.MyCPPException e print e.my_extra_data Unfortunately boost python seems to.. create your exception class like any normal C class class MyCPPException public std exception ... The trick is that all boost python.. as you register the class with boost python like so class_ MyCPPException myCPPExceptionClass MyCPPException ... PyObject myCPPExceptionType..