Add tracking of exception stack #29
Seelengrab
started this conversation in
Design & Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Since Julia 1.1,
throw
in acatch
block will preserve the original error in an exception stack. Currently, Supposition.jl only looks at the topmost error in that stack, but it'd be good to attempt to shrink the total number of nested exceptions as well.The place to change this initially is here:
Supposition.jl/src/teststate.jl
Lines 36 to 49 in d8540ac
which would need to be changed from only looking at the current backtrace to looking at
current_exceptions
.Further, this portion of code further down will also have to be changed, to take into account that there's multiple exception traces:
Supposition.jl/src/teststate.jl
Lines 92 to 119 in d8540ac
in particular, the way
len
is calculated needs to be adjusted so that it takes the total length of all nested exceptions into account. It should likely return a tuple of the number of nested exceptions and the total length.Beta Was this translation helpful? Give feedback.
All reactions