summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorRobert Bradshaw <robertwb@gmail.com>2018-09-22 23:29:01 +0200
committerGitHub <noreply@github.com>2018-09-22 23:29:01 +0200
commite79ace99c4a59d4acddcc4460d042911f9911df8 (patch)
treec5027cd50a87a24e40adfb79ccf3045a23b8143b /docs
parentc4c9683ede47eb939bce78a9d564b06665a1ebf2 (diff)
parent05a2cffac1e7cb6f534664d952ba841b94a093d2 (diff)
downloadcython-e79ace99c4a59d4acddcc4460d042911f9911df8.tar.gz
Merge pull request #2615 from robertwb/cpp-py-exception
Allow catching both C++ and Python exceptions.
Diffstat (limited to 'docs')
-rw-r--r--docs/src/userguide/wrapping_CPlusPlus.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/src/userguide/wrapping_CPlusPlus.rst b/docs/src/userguide/wrapping_CPlusPlus.rst
index 94c5df5f1..815f24954 100644
--- a/docs/src/userguide/wrapping_CPlusPlus.rst
+++ b/docs/src/userguide/wrapping_CPlusPlus.rst
@@ -440,6 +440,13 @@ called, which allows one to do custom C++ to Python error "translations." If
raise_py_error does not actually raise an exception a RuntimeError will be
raised.
+There is also the special form::
+
+ cdef int raise_py_or_cpp() except +*
+
+for those functions that may raise either a Python or a C++ exception.
+
+
Static member method
--------------------