Enum.OutOfBoundsError exception (Elixir v1.19.0-rc.0)

View Source

An exception that is raised when a function expects an enumerable to have a certain size but finds that it is too small.

For example:

iex> Enum.fetch!([1, 2, 3], 5)
** (Enum.OutOfBoundsError) out of bounds error at position 5 when traversing enumerable [1, 2, 3]

Summary

Functions

message(index, enumerable)