-
Since there doesn't seem to be a mechanism for exposing custom exception types, so far I'm hackering around that by inheriting from |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The best thing would be to port pybind11's exception translators to nanobind. The basic infrastructure is already in place: the
which is exactly the same in pybind11. One would simply have to hook this up to "user" (i.e., developer) code so that extra translators can be appended to the list. |
Beta Was this translation helpful? Give feedback.
The best thing would be to port pybind11's exception translators to nanobind. The basic infrastructure is already in place: the
internals
data structure defined insrc/internals.{h/cpp}
provides a fieldwhich is exactly the same in pybind11. One would simply have to hook this up to "user" (i.e., developer) code so that extra translators can be appended to the list.