• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/entry/entryexception.php
  • Класс: Bitrix\Crm\Entry\EntryException
  • Вызов: EntryException::__construct
public function __construct($entityTypeID, $entityID, array $errorMessages, $code = 0, $file = '', $line = 0, \Exception $previous = null)
{
	$this->entityTypeID = $entityTypeID;
	$this->entityID = $entityID;
	$message = implode("\r\n", $errorMessages);
	if($message === '')
	{
		$entityTypeName = \CCrmOwnerType::ResolveName($this->entityTypeID);
		if($code === self::NOT_FOUND)
		{
			$message = "The {$entityTypeName} entity is not found.";
		}
		elseif($code === self::DEPENDENCIES_FOUND)
		{
			$message = "The {$entityTypeName} entity has external dependencies.";
		}
	}

	parent::__construct($message, $code, $file, $line, $previous);
}