• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/conversion/exception/sourcehasparentexception.php
  • Класс: Bitrix\Crm\Conversion\Exception\SourceHasParentException
  • Вызов: SourceHasParentException::__construct
public function __construct(int $srcEntityTypeID, int $dstEntityTypeID)
{
	$sourceTypeName = \CCrmOwnerType::ResolveName($srcEntityTypeID);
	$dstTypeName = \CCrmOwnerType::ResolveName($dstEntityTypeID);

	parent::__construct(
		$srcEntityTypeID,
		$dstEntityTypeID,
		self::TARG_SRC,
		self::INVALID_OPERATION,
		"You can not convert this {$sourceTypeName} item to a {$dstTypeName} item"
		. ' because the source item was converted from an item of the destination type',
	);
}