Merge pull request #1978 from def-/manual-exceptions
Clarify documentation about "except clauses"
This commit is contained in:
commit
5d013cd626
1 changed files with 1 additions and 1 deletions
|
|
@ -83,7 +83,7 @@ raised:
|
||||||
|
|
||||||
Note that ``getCurrentException`` always returns a ``ref Exception``
|
Note that ``getCurrentException`` always returns a ``ref Exception``
|
||||||
type. If a variable of the proper type is needed (in the example
|
type. If a variable of the proper type is needed (in the example
|
||||||
above, ``IOError``), one must use an explicit cast:
|
above, ``IOError``), one must convert it explicitly:
|
||||||
|
|
||||||
.. code-block:: nim
|
.. code-block:: nim
|
||||||
try:
|
try:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue