dart · dart/RangeError
RangeError
RangeError
A subclass of ArgumentError thrown when a value is outside the valid range, most commonly when accessing a list or string with an out-of-bounds index.
Also defined in
- javascript RangeError Thrown when a numeric value falls outside the range allowed by a function, such as an invalid array length, an out-of-range radix passed to Number.prototype.toString(), or excessive recursion ("Maximum call stack size exceeded").
- ruby RangeError Raised when a value is outside a valid range, for example when converting a Float to an Integer and the value overflows.