We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fda9d5 commit 4c206e8Copy full SHA for 4c206e8
include/pybind11/detail/common.h
@@ -681,6 +681,7 @@ PYBIND11_RUNTIME_EXCEPTION(key_error, PyExc_KeyError)
681
PYBIND11_RUNTIME_EXCEPTION(value_error, PyExc_ValueError)
682
PYBIND11_RUNTIME_EXCEPTION(type_error, PyExc_TypeError)
683
PYBIND11_RUNTIME_EXCEPTION(buffer_error, PyExc_BufferError)
684
+PYBIND11_RUNTIME_EXCEPTION(import_error, PyExc_ImportError)
685
PYBIND11_RUNTIME_EXCEPTION(cast_error, PyExc_RuntimeError) /// Thrown when pybind11::cast or handle::call fail due to a type casting error
686
PYBIND11_RUNTIME_EXCEPTION(reference_cast_error, PyExc_RuntimeError) /// Used internally
687
0 commit comments