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:
Ico Doornekamp
2022-11-07 12:17:00 +01:00
committed by GitHub
parent a228e331f3
commit 0b4f502393

View File

@@ -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 ## \