Skip to content

IndexError

Raised when accessing an array or other indexed collection with an out-of-bounds index.

Inherits from: RuntimeError

Constructor

IndexError()

Builds an error reporting an out-of-range or otherwise invalid index.