Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Story Points:4
-
Epic Link:
-
Sprint:DRP F16-1, DRP F16-2
-
Team:Data Release Production
Description
Pybind11 does not currently support translation of custom exceptions. This ticket tracks work done on upstream pybind11 (internal fork https://github.com/lsst-dm/pybind11-1) to implement this functionality. It should support functionality equivalent to (but not necessarily with the same API) as Boost Python exception translators (http://www.boost.org/doc/libs/1_61_0/libs/python/doc/html/reference/high_level_components/boost_python_exception_translato.html).
Attachments
Issue Links
- is child task of
-
DM-6302 Wrap pex_exceptions with pybind11
- Done
Initial attempt ready for review at https://github.com/lsst-dm/pybind11-1/pull/1. I expect we will need to iterate over the design a bit, since we probably cannot change it easily once (if) it is accepted upstream.
Current design is quite bare bones, but offers a great degree of flexibility. We may want to reduce boilerplate a bit by adding some convenience functions. But we also may choose not to.