summary
ErrorsCollection

summary

Synthesised documentation from type/Backtrace

From type/Backtrace

See Original text in context

method summary(Backtrace:D: --> Str:D)

Returns a summary string representation of the backtrace, filtered by !.is-hidden && (.is-routine || !.is-setting).

This program:

sub inner { say Backtrace.new.summary }
sub outer { inner}
outer;

results in:

in method new at SETTING::src/core.c/Backtrace.pm6 line 85
in sub inner at test.p6 line 1
in sub outer at test.p6 line 2
in block <unit> at test.p6 line 3