@@ -9,16 +9,13 @@ that will trap C++ exceptions, translate them to the corresponding Python except
9
9
and raise them so that Python code can handle them.
10
10
11
11
pybind11 defines translations for ``std::exception `` and its standard
12
- subclasses (see [ translate_exception ]_) and several special exception classes
13
- that translate to specific Python exceptions (see [ PYBIND11_RUNTIME_EXCEPTION ]_) .
12
+ subclasses and several special exception classes that translate to specific
13
+ Python exceptions.
14
14
Note that these are not actually Python exceptions, so they
15
15
cannot be examined using the Python C API. Instead, they are pure C++ objects
16
16
that pybind11 will translate the corresponding Python exception when they arrive
17
17
at its exception handler.
18
18
19
- .. [translate_exception ] https://github.com/pybind/pybind11/search?q=translate_exception
20
- .. [PYBIND11_RUNTIME_EXCEPTION ] https://github.com/pybind/pybind11/blob/master/include/pybind11/detail/common.h
21
-
22
19
.. tabularcolumns :: |p{0.5\textwidth}|p{0.45\textwidth}|
23
20
24
21
+--------------------------------------+--------------------------------------+
@@ -60,7 +57,7 @@ at its exception handler.
60
57
+--------------------------------------+--------------------------------------+
61
58
| :class: `pybind11::buffer_error ` | ``BufferError `` |
62
59
+--------------------------------------+--------------------------------------+
63
- | :class: `pybind11::import_error ` | ``import_error` |
60
+ | :class: `pybind11::import_error ` | ``import_error `` |
64
61
+--------------------------------------+--------------------------------------+
65
62
| Any other exception | ``RuntimeError `` |
66
63
+--------------------------------------+--------------------------------------+
0 commit comments