Platformsh\Cli\Command\Domain\DomainCommandBase::handleApiException PHP Метод

handleApiException() защищенный Метод

Output a clear explanation for domains API errors.
protected handleApiException ( GuzzleHttp\Exception\ClientException $e, Platformsh\Client\Model\Project $project )
$e GuzzleHttp\Exception\ClientException
$project Platformsh\Client\Model\Project
    protected function handleApiException(ClientException $e, Project $project)
    {
        $response = $e->getResponse();
        if ($response !== null && $response->getStatusCode() === 403) {
            $project->ensureFull();
            $data = $project->getData();
            if (!$project->hasLink('#manage-domains') && !empty($data['subscription']['plan']) && $data['subscription']['plan'] === 'development') {
                $this->stdErr->writeln('This project is on a Development plan. Upgrade the plan to add domains.');
            }
        } else {
            throw $e;
        }
    }