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 46f7f36 commit ffe0510Copy full SHA for ffe0510
src/Elasticsearch/Client.php
@@ -4,6 +4,8 @@
4
5
use Elasticsearch\Common\Exceptions\BadMethodCallException;
6
use Elasticsearch\Common\Exceptions\InvalidArgumentException;
7
+use Elasticsearch\Common\Exceptions\NoNodesAvailableException;
8
+use Elasticsearch\Common\Exceptions\BadRequest400Exception;
9
use Elasticsearch\Common\Exceptions\Missing404Exception;
10
use Elasticsearch\Common\Exceptions\TransportException;
11
use Elasticsearch\Endpoints\AbstractEndpoint;
@@ -136,6 +138,8 @@ public function ping($params = [])
136
138
return false;
137
139
} catch (TransportException $exception) {
140
141
+ } catch (NoNodesAvailableException $exception) {
142
+ return false;
143
}
144
145
return true;
0 commit comments