a = [10,20,30] echo(a) # ... Exception of type IndexNotFound ...
Direct parent types
Represents an error of accessing non-existent element of a collection.Direct subtypes: 5
Direct children types
Represents an error of using an empty array for an operation that requires at least one element in the array.
- init(e:IndexNotFound, message:Str, container:Any, key:Any) Source: stdlib.ngs:68
IndexNotFound exception constructor
ReturnsIndexNotFound object with the given message, container and key fields