Merge pull request #3100 from jyapayne/devel

Expose the name of an exception.
This commit is contained in:
Andreas Rumpf 2015-07-10 23:55:28 +02:00
commit f915b71ec4

View file

@ -389,9 +389,9 @@ type
## Each exception has to inherit from `Exception`. See the full `exception ## Each exception has to inherit from `Exception`. See the full `exception
## hierarchy`_. ## hierarchy`_.
parent*: ref Exception ## parent exception (can be used as a stack) parent*: ref Exception ## parent exception (can be used as a stack)
name: cstring ## The exception's name is its Nim identifier. name*: cstring ## The exception's name is its Nim identifier.
## This field is filled automatically in the ## This field is filled automatically in the
## ``raise`` statement. ## ``raise`` statement.
msg* {.exportc: "message".}: string ## the exception's message. Not msg* {.exportc: "message".}: string ## the exception's message. Not
## providing an exception message ## providing an exception message
## is bad style. ## is bad style.