Skip to content

Commit 9388689

Browse files
committed
X::OutOfRange
1 parent aaf33eb commit 9388689

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

lib/X/OutOfRange.pod

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
=begin pod
2+
3+
=TITLE class X::OutOfRange
4+
5+
class X::OutOfRange is Exception { }
6+
7+
General error when something (for example an array index) is out of an allowed
8+
range.
9+
10+
=head1 Methods
11+
12+
=head2 what
13+
14+
method what() returns Str:D
15+
16+
Verbal description of the thing that was out of range (e.g. C<"array index">,
17+
C<"month">).
18+
19+
=head2 got
20+
21+
method got()
22+
23+
Returns the object that was considered out of range (often an integer)
24+
25+
=head2 range
26+
27+
method range returns Range:D
28+
29+
Returns a L<Range> object describing the premissible range for the object
30+
returned from C<.got>.
31+
32+
=head2 comment
33+
34+
method comment returns Str
35+
36+
Returns an additiona comment that is included in the error message.
37+
38+
=end pod

0 commit comments

Comments
 (0)