You are here

private function Client::handleUnexpectedStatus in Smart IP 6.2

Same name and namespace in other branches
  1. 7.2 includes/vendor/maxmind/web-service-common/src/WebService/Client.php \MaxMind\WebService\Client::handleUnexpectedStatus()

Parameters

int $statusCode The HTTP status code:

string $service The service name:

string $path The URI path used in the request:

Throws

HttpException

1 call to Client::handleUnexpectedStatus()
Client::handleResponse in includes/vendor/maxmind/web-service-common/src/WebService/Client.php

File

includes/vendor/maxmind/web-service-common/src/WebService/Client.php, line 376

Class

Client
This class is not intended to be used directly by an end-user of a MaxMind web service. Please use the appropriate client API for the service that you are using. @package MaxMind\WebService @internal

Namespace

MaxMind\WebService

Code

private function handleUnexpectedStatus($statusCode, $service, $path) {
  throw new HttpException('Received an unexpected HTTP status ' . "({$statusCode}) for {$service}", $statusCode, $this
    ->urlFor($path));
}