- Модуль: main
- Путь к файлу: ~/bitrix/modules/main/lib/exception.php
- Класс: BitrixMainArgumentOutOfRangeException
- Вызов: ArgumentOutOfRangeException::__construct
public function __construct($parameter, $lowerLimit = null, $upperLimit = null, Exception $previous = null)
{
if (is_array($lowerLimit))
$message = sprintf("The value of an argument '%s' is outside the allowable range of values: %s", $parameter, implode(", ", $lowerLimit));
elseif (($lowerLimit !== null) && ($upperLimit !== null))
$message = sprintf("The value of an argument '%s' is outside the allowable range of values: from %s to %s", $parameter, $lowerLimit, $upperLimit);
elseif (($lowerLimit === null) && ($upperLimit !== null))
$message = sprintf("The value of an argument '%s' is outside the allowable range of values: not greater than %s", $parameter, $upperLimit);
elseif (($lowerLimit !== null) && ($upperLimit === null))
$message = sprintf("The value of an argument '%s' is outside the allowable range of values: not less than %s", $parameter, $lowerLimit);
else
$message = sprintf("The value of an argument '%s' is outside the allowable range of values", $parameter);
$this->lowerLimit = $lowerLimit;
$this->upperLimit = $upperLimit;
parent::__construct($message, $parameter, $previous);
}