Jason Rhinelander b3794f1087 Added py::register_exception for simple case (#296)
The custom exception handling added in PR #273 is robust, but is overly
complex for declaring the most common simple C++ -> Python exception
mapping that needs only to copy `what()`.  This add a simpler
`py::register_exception<CppExp>(module, "PyExp");` function that greatly
simplifies the common basic case of translation of a simple CppException
into a simple PythonException, while not removing the more advanced
capabilities of defining custom exception handlers.
2016-09-16 08:04:15 +02:00
..
2016-04-26 23:48:55 +02:00
2016-09-06 13:02:29 +09:00
2016-09-06 13:02:29 +09:00
2016-08-19 09:38:14 +02:00
2016-06-30 14:46:11 +02:00
2015-10-13 03:16:44 +02:00