Skip to content

Commit

Permalink
Clarify imported exceptions note in manual
Browse files Browse the repository at this point in the history
  • Loading branch information
dom96 authored Jun 13, 2020
1 parent d149823 commit d3b25a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/manual.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4354,7 +4354,7 @@ caught by reference. Example:
fn()
**Note:** `getCurrentException()` and `getCurrentExceptionMsg()` are not available
for imported exceptions. One needs to use the `except ImportedException as x:` syntax
for imported exceptions from C++. One needs to use the `except ImportedException as x:` syntax
and rely on functionality of the `x` object to get exception details.


Expand Down

1 comment on commit d3b25a2

@timotheecour
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dom96 that's not what I meant here #14392 (comment), and this is still vague.

getCurrentExceptionMsg and getCurrentException() are available, they're just returning default values (instead of giving CT error or the actually exception string and exception).

Also, it's not just C++ but any backend that can raise exceptions, in particular js

Please sign in to comment.