Skip to content

Commit 6b6713f

Browse files
committed
document Backtrace
1 parent c9b8604 commit 6b6713f

File tree

2 files changed

+40
-4
lines changed

2 files changed

+40
-4
lines changed

TODO

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,13 @@ Types:
66
Date # probably possible to steal much from S32::Temporal
77
DateTime # probably possible to steal much from S32::Temporal
88

9-
Backtrace
10-
Backtrace::Frame
11-
129
Bag
1310
Set
1411
KeyBag
1512
KeySet
1613

1714
Order (enum)
1815

19-
Signature
2016
Parameter
2117

2218
Junction

lib/Backtrace.pod

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
=begin pod
2+
3+
=TITLE class Backtrace
4+
5+
class Backtrace is List { ... }
6+
7+
A backtrace shows the dynamic call stack, usually leading up to a point
8+
where an exception was thrown.
9+
10+
It is a List of L<Backtrace::Frame> objects. Its default stringification
11+
excludes backtrace frames that are deemed unnecessary or confusing, for
12+
example routines like C<&die> are hidden by default.
13+
14+
=head1 Methods
15+
16+
=head2 new
17+
18+
proto method new(*@, *%) {*}
19+
multi method new()
20+
21+
Creates a new backtrace, using its calling location as the origin of the
22+
backtrace.
23+
24+
=head2 Str
25+
26+
multi method Str(Backtrace:D:) returns Str:D:
27+
28+
Returns a concise string representation of the backtrace, omitting
29+
routines marked as C<is hidden_from_backtrace>, and at the discretion of
30+
the implementor, also some routines from the setting.
31+
32+
=head2 full
33+
34+
35+
multi method full(Backtrace:D:) returns Str:D:
36+
37+
Returns a full string representation of the backtrace, including hidden
38+
frames, compiler-specific frames and those from the setting.
39+
40+
=end pod

0 commit comments

Comments
 (0)