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