- Модуль: disk
- Путь к файлу: ~/bitrix/modules/disk/lib/bitrix24disk/legacy/storagecontroller.php
- Класс: BitrixDiskBitrix24DiskLegacyStorageController
- Вызов: StorageController::runProcessingException
protected function runProcessingException(Exception $e)
{
if($e instanceof AccessDeniedException)
{
$this->sendJsonResponse(array(
'status' => self::STATUS_ACCESS_DENIED,
'message' => $e->getMessage(),
));
}
elseif($e instanceof BadStorageAfterMigrateException)
{
$this->sendJsonResponse(array(
'status' => self::STATUS_ERROR,
'message'=> 'Could not get Disk\Storage. Perhaps, it is old client, which does not reconnect. ',
), array('http_status' => 510));
}
elseif($e instanceof OldDiskVersionException)
{
$this->sendJsonResponse(array(
'status' => self::STATUS_ERROR,
'message'=> 'Old version of client. Need to upgrade you Bitrix24.Disk.',
), array('http_status' => 510));
}
else
{
$this->errorCollection->addOne(new Error($e->getMessage()));
$this->sendJsonErrorResponse();
}
}