File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments