Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
yandexdirectexception.php
1<?php
2namespace Bitrix\Seo\Engine;
3
5
7{
8 public function __construct(array $queryResult, \Exception $previous = null)
9 {
10 $errorMessage = $queryResult['error'];
11 if($errorMessage <> '' && $queryResult['error_description'] <> '')
12 {
13 $errorMessage .= ": ";
14 }
15 $errorMessage .= $queryResult['error_description'];
16
17 if(intval($queryResult['error']) > 0)
18 {
19 parent::__construct($errorMessage, intval($queryResult['error']));
20 }
21 else
22 {
23 parent::__construct($errorMessage);
24 }
25 }
26}
__construct(array $queryResult, \Exception $previous=null)