throw runtime exception  with message if indicatorPosition value is not valid