In Exception§
See primary documentation in context for method rethrow
method rethrow(Exception:D:)
Rethrows an exception that has already been thrown at least once. This is different from throw
in that it preserves the original backtrace.
sub f() { die 'Bad' }; sub g() { f; CATCH { default { .rethrow } } }; g; CATCH { default { say .backtrace.full } };