InvalidRangeException implementation added.