IndexError class

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

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

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.

Instance Properties

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

Instance Methods

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