CBPArgumentOutOfRangeException::__construct

  1. Bitrix24 API (v. 23.675.0)
  2. bizproc
  3. CBPArgumentOutOfRangeException
  4. __construct
  • Модуль: bizproc
  • Путь к файлу: ~/bitrix/modules/bizproc/classes/general/exception.php
  • Класс: CBPArgumentOutOfRangeException
  • Вызов: CBPArgumentOutOfRangeException::__construct
public function __construct($paramName, $actualValue = null, $message = "")
{
	if ($message == '')
	{
		if ($actualValue === null)
			$message = str_replace("#PARAM#", htmlspecialcharsbx($paramName), GetMessage("BPCGERR_INVALID_ARG"));
		else
			$message = str_replace(array("#PARAM#", "#VALUE#"), array(htmlspecialcharsbx($paramName), htmlspecialcharsbx($actualValue)), GetMessage("BPCGERR_INVALID_ARG1"));
	}

	parent::__construct($message, $paramName);

	$this->code = "10003";
	$this->actualValue = $actualValue;
}

Добавить комментарий