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
- Object
- Error
- ArgumentError
- IndexError
- Implements
Properties
- int end
-
read-only
- dynamic indexable
-
read-onlyThe indexable object that
index
was not a valid index into. - dynamic invalidValue
-
read-only, inheritedThe invalid value.
- int length
-
read-onlyThe length of indexable at the time of the error.
- dynamic message
-
read-only, inheritedMessage describing the problem.
- String name
-
read-only, inheritedName 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 intoindexable
.
Methods
-
toString(
) → String -
inheritedReturns a string representation of this object.