rethrow
ErrorsCollection

rethrow

Synthesised documentation from type/Exception

From type/Exception

See Original text in context

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() { fCATCH { default { .rethrow } } };
g;
CATCH { default { say .backtrace.full } };