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
commit 0b4f502393
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -493,9 +493,9 @@ type
## providing an exception message ## providing an exception message
## is bad style. ## is bad style.
when defined(js): when defined(js):
trace: string trace*: string
else: else:
trace: seq[StackTraceEntry] trace*: seq[StackTraceEntry]
up: ref Exception # used for stacking exceptions. Not exported! up: ref Exception # used for stacking exceptions. Not exported!
Defect* = object of Exception ## \ Defect* = object of Exception ## \