• Модуль: disk
  • Путь к файлу: ~/bitrix/modules/disk/lib/internals/basecomponent.php
  • Класс: BitrixDiskInternalsBaseComponent
  • Вызов: BaseComponent::runProcessingExceptionComponent
protected function runProcessingExceptionComponent(Exception $e)
{
	if($this->isAjaxRequest())
	{
		$this->sendJsonResponse(array(
			'status' => static::STATUS_ERROR,
			'message' => $e->getMessage(),
		));
	}
	else
	{
		$exceptionHandling = ConfigConfiguration::getValue("exception_handling");
		if($exceptionHandling["debug"])
		{
			throw $e;
		}
	}
}