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.
- Inheritance
- Object
- Error
- ArgumentError
- IndexError
- Implements
Properties
- end → int
-
read-only
- indexable → dynamic
-
read-only
The indexable object that
index
was not a valid index into. - invalidValue → dynamic
-
read-only, inherited
The invalid value.
- length → int
-
read-only
The length of indexable at the time of the error.
- message → dynamic
-
read-only, inherited
Message describing the problem.
- name → String
-
read-only, inherited
Name of the invalid argument, if available.
- stackTrace → StackTrace
-
read-only, inherited
- start → int
-
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 intoindexable
.…