Write a Python function that takes a list and an index, and returns the element at that index. Raise an exception if the index is out of bounds.
Example 1:
Input: [1, 2, 3, 4, 5], 10
Output: "Error: Index out of bounds."
Example 2:
Input: [1, 2, 3, 4, 5], 3
Output: 4