You are here

private function Client::handle5xx in Smart IP 7.2

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

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::handle5xx()
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 361

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 handle5xx($statusCode, $service, $path) {
  throw new HttpException("Received a server error ({$statusCode}) for {$service}", $statusCode, $this
    ->urlFor($path));
}