mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-13 06:43:52 +00:00
docs:getCurrentException() and getCurrentExceptionMsg() are not available for imported exceptions (#14392)
This commit is contained in:
@@ -4258,7 +4258,9 @@ caught by reference. Example:
|
||||
except std_exception as ex:
|
||||
echo ex.what()
|
||||
|
||||
|
||||
**Note:** `getCurrentException()` and `getCurrentExceptionMsg()` are not available
|
||||
for imported exceptions. You need to use `except ImportedException as x:` syntax
|
||||
and rely on functionality of `x` object to get exception details.
|
||||
|
||||
Effect system
|
||||
=============
|
||||
|
||||
Reference in New Issue
Block a user