We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8d614d commit 068e5cbCopy full SHA for 068e5cb
lib/Clients/ApiClient.php
@@ -5,6 +5,7 @@
5
use GuzzleHttp\Client as GuzzleClient;
6
use GuzzleHttp\Exception\ConnectException;
7
use GuzzleHttp\Exception\GuzzleException;
8
+use GuzzleHttp\Exception\ServerException;
9
use Throwable;
10
use Xedi\SendGrid\Clients\Concerns\HandlesExceptions;
11
use Xedi\SendGrid\Clients\HttpResponse;
@@ -150,7 +151,7 @@ protected function makeRequest(
150
151
$response->getStatusCode(),
152
$response->getHeaders()
153
);
- } catch (ConnectException $exception) {
154
+ } catch (ConnectException | ServerException $exception) {
155
throw SendGridUnreacheableException::fromConnectionException(
156
$exception
157
0 commit comments