This commit is contained in:
Simon Vieille 2015-02-10 09:12:29 +01:00
parent abd88f66a8
commit d748a0ea88

View file

@ -92,9 +92,9 @@ class Client
try {
return new ClientResponse($this->client->{$method}($uri, $options));
} catch (RequestException $e) {
throw new ApiClientException(sprintf('Request exception (%s): %s', strtoupper($method), $e->getMessage()));
throw new ClientException(sprintf('Request exception (%s): %s', strtoupper($method), $e->getMessage()));
} catch (HttpConnectException $e) {
throw new ApiClientException(sprintf('HTTP Connection exception: %s', $e->getMessage()));
throw new ClientException(sprintf('HTTP Connection exception: %s', $e->getMessage()));
}
}
}