Error due to indexing outside of an allowed range
General error when something (for example an array index) is out of an allowed range.
say 42;CATCH ;# OUTPUT: «X::OutOfRange: Index out of range. Is: 2, should be in 0..0␤»
since scalars generally act as a one-element list.
method what(--> Str)
Verbal description of the thing that was out of range (e.g.
Returns the object that was considered out of range (often an integer)
method range(--> Range)
Returns a Range object describing the permissible range for the object returned from
method comment(--> Str)
Returns an additional comment that is included in the error message.