Throw expection indexOfBounds