diff options
author | Robert Bradshaw <robertwb@gmail.com> | 2018-09-22 23:29:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-22 23:29:01 +0200 |
commit | e79ace99c4a59d4acddcc4460d042911f9911df8 (patch) | |
tree | c5027cd50a87a24e40adfb79ccf3045a23b8143b /docs | |
parent | c4c9683ede47eb939bce78a9d564b06665a1ebf2 (diff) | |
parent | 05a2cffac1e7cb6f534664d952ba841b94a093d2 (diff) | |
download | cython-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.rst | 7 |
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 -------------------- |