<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _get_value_error_message_for_invalid_prarameter(self, parameter, value):
 """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 """

        # 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
        )