Skip to content

Commit 283eb14

Browse files
committed
Remove AlreadyExpiredException.
1 parent f8b5d2b commit 283eb14

File tree

2 files changed

+1
-22
lines changed

2 files changed

+1
-22
lines changed

src/Elasticsearch/Common/Exceptions/AlreadyExpiredException.php

Lines changed: 0 additions & 18 deletions
This file was deleted.

src/Elasticsearch/Connections/Connection.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
namespace Elasticsearch\Connections;
66

77
use Elasticsearch\Client;
8-
use Elasticsearch\Common\Exceptions\AlreadyExpiredException;
98
use Elasticsearch\Common\Exceptions\BadRequest400Exception;
109
use Elasticsearch\Common\Exceptions\Conflict409Exception;
1110
use Elasticsearch\Common\Exceptions\Curl\CouldNotConnectToHost;
@@ -611,9 +610,7 @@ private function process4xxError(array $request, array $response, array $ignore)
611610
$responseBody = json_encode($responseBody);
612611
}
613612

614-
if ($statusCode === 400 && strpos($responseBody, "AlreadyExpiredException") !== false) {
615-
$exception = new AlreadyExpiredException($responseBody, $statusCode);
616-
} elseif ($statusCode === 403) {
613+
if ($statusCode === 403) {
617614
$exception = new Forbidden403Exception($responseBody, $statusCode);
618615
} elseif ($statusCode === 404) {
619616
$exception = new Missing404Exception($responseBody, $statusCode);

0 commit comments

Comments
 (0)