Export trace member of exception type to allow custom stack trace entries (#20772)
Added insertStackTraceEntry() proc to allow custom stack trace entries
This commit is contained in:
parent
a228e331f3
commit
0b4f502393
1 changed files with 2 additions and 2 deletions
|
|
@ -493,9 +493,9 @@ type
|
|||
## providing an exception message
|
||||
## is bad style.
|
||||
when defined(js):
|
||||
trace: string
|
||||
trace*: string
|
||||
else:
|
||||
trace: seq[StackTraceEntry]
|
||||
trace*: seq[StackTraceEntry]
|
||||
up: ref Exception # used for stacking exceptions. Not exported!
|
||||
|
||||
Defect* = object of Exception ## \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue