• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/tradingplatform/vk/logger.php
  • Класс: Bitrix\Sale\TradingPlatform\Vk\Logger
  • Вызов: Logger::addError
public function addError($errCode, $itemId = null, $errParams = null)
{
	$errorDescription = $this->getErrorsDescriptions($errCode);
	$errCode = $errorDescription['CODE'] ? $errorDescription['CODE'] : $errCode;
//		add new error
	if (!$this->addErrorToTable($errCode, $itemId, $errParams))
		return false;

//		show notify only for critical errors, other message - show only on page
	if ($errorDescription['CRITICAL'])
	{
		throw new ExecuteException($errorDescription["MESSAGE"]);
	}
	
	return true;
}