1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
oauthexception.php
См. документацию.
1
<?
2
namespace
Bitrix\Rest;
3
4
class
OAuthException
5
extends
RestException
6
{
7
protected
$result
;
8
14
public
function
__construct
($oauthResult, \
Exception
$previous =
null
)
15
{
16
$this->result = $oauthResult;
17
18
parent::__construct(
19
$this->result[
'error_description'
] ??
''
,
20
static::ERROR_OAUTH,
21
isset($oauthResult[
"error_status"
])
22
? $oauthResult[
"error_status"
]
23
: \CRestServer::STATUS_UNAUTHORIZED,
24
$previous
25
);
26
27
if
(isset($oauthResult[
'additional'
]) && is_array($oauthResult[
'additional'
]))
28
{
29
$this->
setAdditional
($oauthResult[
'additional'
]);
30
}
31
}
32
33
public
function
getErrorCode
()
34
{
35
return
$this->result[
'error'
];
36
}
37
}
38
?>
Bitrix\Rest\OAuthException
Определения
oauthexception.php:6
Bitrix\Rest\OAuthException\$result
$result
Определения
oauthexception.php:7
Bitrix\Rest\OAuthException\__construct
__construct($oauthResult, \Exception $previous=null)
Определения
oauthexception.php:14
Bitrix\Rest\OAuthException\getErrorCode
getErrorCode()
Определения
oauthexception.php:33
Bitrix\Rest\RestException
Определения
restexception.php:6
Bitrix\Rest\RestException\setAdditional
setAdditional($error_additional)
Определения
restexception.php:63
Bitrix\Main\DI\Exception
Определения
circulardependencyexception.php:3
bitrix
modules
rest
lib
oauthexception.php
Создано системой
1.14.0