4.5 KiB
4.5 KiB
YooKassa API SDK
Class: \YooKassa\Common\Exceptions\UnauthorizedException
Namespace: \YooKassa\Common\Exceptions
Summary:
[Basic Auth] Неверный идентификатор вашего аккаунта в ЮKassa или секретный ключ (имя пользователя и пароль при аутентификации).
Description:
[OAuth 2.0] Невалидный OAuth-токен: он некорректный, устарел или его отозвали. Запросите токен заново.
Constants
| Visibility | Name | Flag | Summary |
|---|---|---|---|
| public | HTTP_CODE |
Properties
| Visibility | Name | Flag | Summary |
|---|---|---|---|
| public | $retryAfter | ||
| public | $type | ||
| protected | $responseBody | ||
| protected | $responseHeaders |
Methods
| Visibility | Name | Flag | Summary |
|---|---|---|---|
| public | __construct() | Constructor | |
| public | getResponseBody() | ||
| public | getResponseHeaders() |
Details
- File: lib/Common/Exceptions/UnauthorizedException.php
- Package: YooKassa
- Class Hierarchy:
- \Exception
- \YooKassa\Common\Exceptions\ApiException
- \YooKassa\Common\Exceptions\UnauthorizedException
Constants
HTTP_CODE
HTTP_CODE = 401
Properties
public $retryAfter
Details:
public $type
Details:
protected $responseBody : mixed
Type: mixed
Details:
- Inherited From: \YooKassa\Common\Exceptions\ApiException
protected $responseHeaders : string[]
Type: string[]
Details:
- Inherited From: \YooKassa\Common\Exceptions\ApiException
Methods
public __construct() : mixed
public __construct(mixed $responseHeaders = array(), mixed $responseBody = null) : mixed
Summary
Constructor
Details:
- Inherited From: \YooKassa\Common\Exceptions\UnauthorizedException
Parameters:
| Type | Name | Description |
|---|---|---|
mixed |
responseHeaders | HTTP header |
mixed |
responseBody | HTTP body |
Returns: mixed -
public getResponseBody() : mixed
public getResponseBody() : mixed
Details:
- Inherited From: \YooKassa\Common\Exceptions\ApiException
Returns: mixed -
public getResponseHeaders() : string[]
public getResponseHeaders() : string[]
Details:
- Inherited From: \YooKassa\Common\Exceptions\ApiException
Returns: string[] -
Top Namespaces
Reports
This document was automatically generated from source code comments on 2023-04-06 using phpDocumentor
© 2023 YooMoney