- Модуль: bizproc
- Путь к файлу: ~/bitrix/modules/bizproc/classes/general/exception.php
- Класс: CBPArgumentTypeException
- Вызов: CBPArgumentTypeException::__construct
public function __construct($paramName, $correctType = null, $message = "")
{
if ($message == '')
{
if ($correctType === null)
$message = str_replace("#PARAM#", htmlspecialcharsbx($paramName), GetMessage("BPCGERR_INVALID_TYPE"));
else
$message = str_replace(array("#PARAM#", "#VALUE#"), array(htmlspecialcharsbx($paramName), htmlspecialcharsbx($correctType)), GetMessage("BPCGERR_INVALID_TYPE1"));
}
parent::__construct($message, $paramName);
$this->code = "10005";
$this->correctType = $correctType;
}