One can prefer use of single `Exception` instance to prevent creating new Exception objects and continue `throw`ing that single instance. When this approach is preferred, Throwable trace info shows trace of the first `throw` of that exception, which leads to invalid information for following throws.
@mkykadir created dlang/druntime pull request #3742 "fix Issue 22774 - TraceInfo is gathered only once when throwing a Thr…" fixing this issue: - fix Issue 22774 - TraceInfo is gathered only once when throwing a Throwable Update `info` during every `throw` https://github.com/dlang/druntime/pull/3742
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17439 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB