code: def _get_value_error_message_for_invalid_prarameter(self, parameter, value):
          
          # return if not interval is defined for the parameter
          if parameter not in self._parameterIntervals:
              return
  
          interval = self._parameterIntervals[parameter]
          return "%s has to be in %s%s, %s%s. Current value is %s." % (
              parameter,
              BaseMethod._interval_definitions[interval[2]][0],
              interval[0], interval[1],
              BaseMethod._interval_definitions[interval[3]][1],
              value
          )
docs: Returns the ValueError message for the given parameter.
  
          :param string parameter:    Name of the parameter the message has to be created for.
          :param numeric value:    Value outside the parameters interval.
  
          :return:    Returns a string containing hte message.
          :rtype: string