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-09-10 16:24:00 +01:00
2016-09-07 01:25:27 +02:00
2016-09-07 01:25:27 +02:00
2016-09-06 13:02:29 +09:00
2016-09-03 17:34:41 -04:00
2016-09-07 01:25:27 +02:00
2016-09-09 03:04:09 -04:00
2016-09-09 03:04:09 -04:00
2016-09-03 17:34:41 -04:00
2016-08-19 13:19:38 +02:00
2016-09-06 16:41:50 +02:00
2016-09-06 16:41:50 +02:00
2016-09-06 12:22:13 -04:00
2016-09-06 12:22:13 -04:00
2016-09-03 17:34:41 -04:00
2016-08-19 13:19:38 +02:00
2016-09-06 13:02:29 +09:00
2016-08-25 17:08:09 +02:00
2016-09-06 13:02:29 +09:00
2016-08-19 13:19:38 +02:00
2016-08-19 16:31:48 +02:00
2016-09-10 12:08:32 +02:00
2016-08-19 16:31:48 +02:00
2016-09-16 08:04:15 +02:00
2016-09-16 08:04:15 +02:00
2016-09-11 18:41:28 -04:00
2016-09-11 18:41:28 -04:00
2016-09-10 17:16:16 +09:00
2016-09-10 17:16:16 +09:00
2016-09-07 01:25:27 +02:00
2016-08-19 13:19:38 +02:00
2016-09-06 16:41:50 +02:00
2016-09-06 16:41:50 +02:00
2016-09-03 17:34:41 -04:00
2016-08-19 13:19:38 +02:00
2016-09-03 17:34:41 -04:00
2016-08-19 13:19:38 +02:00
2016-09-10 16:42:17 +01:00
2016-09-10 16:42:17 +01:00
2016-09-03 17:34:41 -04:00
2016-08-25 17:08:09 +02:00
2016-09-07 01:25:27 +02:00
2016-08-19 13:19:38 +02:00
2016-09-03 17:34:41 -04:00
2016-08-19 13:19:38 +02:00
2016-09-03 17:34:41 -04:00
2016-08-19 13:19:38 +02:00
2016-09-03 17:34:41 -04:00
2016-08-19 13:19:38 +02:00
2016-09-07 01:25:27 +02:00
2016-09-07 01:25:27 +02:00
2016-09-03 17:34:41 -04:00
2016-08-24 23:30:00 +01:00
2016-09-07 01:25:27 +02:00
2016-09-04 18:23:55 -04:00
2016-09-06 13:02:29 +09:00
2016-09-05 17:11:16 -04:00
2016-09-11 01:21:53 -04:00
2016-09-11 01:21:53 -04:00