A specialized RangeError used when an index is not in the range 0..indexable.length-1.

Also contains the indexable object, its length at the time of the error, and the invalid index itself.

Extends
Implements

Properties

int end
read-only
dynamic indexable
read-only
The indexable object that index was not a valid index into.
dynamic invalidValue
read-only, inherited
The invalid value.
int length
read-only
The length of indexable at the time of the error.
dynamic message
read-only, inherited
Message describing the problem.
String name
read-only, inherited
Name of the invalid argument, if available.
StackTrace stackTrace
read-only, inherited
int start
read-only

Constructors

IndexError(int invalidValue, indexable, [String name, String message, int length])
Creates a new IndexError stating that invalidValue is not a valid index into indexable.

Methods

toString() → String
inherited
Returns a string representation of this object.