IndexNotFound type

Represents an error of out-of-bounds array index.

Example

a = [10,20,30]
echo(a[100])
# ... Exception of type IndexNotFound ...

Direct parent types

LookupFail
Represents an error of accessing non-existent element of a collection.
Direct subtypes: 5

Direct children types

EmptyArrayFail
Represents an error of using an empty array for an operation that requires at least one element in the array.

Methods

init(e:IndexNotFound, message:Str, container:Any, key:Any) Source: stdlib.ngs:68
IndexNotFound exception constructor

Returns

IndexNotFound object with the given message, container and key fields