Move the exception for NoSuchElement in the base class where it is visible by all.