src/API/Supplemental/Yandex/YandexApiTrait.php
public function filterYandexSpecificErrors(array $responseArray): void
    {
        if (isset($responseArray['code'])) {
            if (($responseArray['code'] !== YandexApiStatusesInterface::STATUS_SUCCESS) &&
                isset(self::$customStatusMessages[$responseArray['code']])
            ) {
                $errorMessage = $responseArray['message']
                    ?? self::$customStatusMessages[$responseArray['code']];

                throw new BadResponseContextException($errorMessage, $responseArray['code']);
            }
        }
    }
public function filterYandexSpecificErrors(array $responseArray): void
    {
        if (isset($responseArray['code'])) {
            if (($responseArray['code'] !== YandexApiStatusesInterface::STATUS_SUCCESS) &&
                isset(self::$customStatusMessages[$responseArray['code']])
            ) {
                $errorMessage = $responseArray['message']
                    ?? self::$customStatusMessages[$responseArray['code']];

                throw new BadResponseContextException($errorMessage, $responseArray['code']);
            }
        }
    }
public function filterYandexSpecificErrors ( array $ responseArray ) : void { if ( isset ( $ responseArray [ 'code' ] ) ) { if ( ( $ responseArray [ 'code' ] !== YandexApiStatusesInterface :: STATUS_SUCCESS ) && isset ( self :: $ customStatusMessages [ $ responseArray [ 'code' ] ] ) ) { $ errorMessage = $ responseArray [ 'message' ] ?? self :: $ customStatusMessages [ $ responseArray [ 'code' ] ] ; throw new BadResponseContextException ( $ errorMessage , $ responseArray [ 'code' ] ) ; } } }
Checks for Yandex-specific errors and throws exception if error detected

@param array $responseArray

@throws BadResponseContextException
Checks for Yandex - specific errors and throws exception if error detected