File tree 2 files changed +4
-1
lines changed
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,9 @@ at its exception handler.
56
56
+--------------------------------------+--------------------------------------+
57
57
| :class: `pybind11::buffer_error ` | ``BufferError `` |
58
58
+--------------------------------------+--------------------------------------+
59
- | :class: `pybind11::import_error ` | ``import_error `` |
59
+ | :class: `pybind11::import_error ` | ``ImportError `` |
60
+ +--------------------------------------+--------------------------------------+
61
+ | :class: `pybind11::attribute_error ` | ``AttributeError `` |
60
62
+--------------------------------------+--------------------------------------+
61
63
| Any other exception | ``RuntimeError `` |
62
64
+--------------------------------------+--------------------------------------+
Original file line number Diff line number Diff line change @@ -831,6 +831,7 @@ PYBIND11_RUNTIME_EXCEPTION(value_error, PyExc_ValueError)
831
831
PYBIND11_RUNTIME_EXCEPTION(type_error, PyExc_TypeError)
832
832
PYBIND11_RUNTIME_EXCEPTION(buffer_error, PyExc_BufferError)
833
833
PYBIND11_RUNTIME_EXCEPTION(import_error, PyExc_ImportError)
834
+ PYBIND11_RUNTIME_EXCEPTION(attribute_error, PyExc_AttributeError)
834
835
PYBIND11_RUNTIME_EXCEPTION(cast_error, PyExc_RuntimeError) // / Thrown when pybind11::cast or handle::call fail due to a type casting error
835
836
PYBIND11_RUNTIME_EXCEPTION(reference_cast_error, PyExc_RuntimeError) // / Used internally
836
837
You can’t perform that action at this time.
0 commit comments