Skip to content

Commit 161558a

Browse files
Xavier Serrat Bordasxserrat
authored andcommitted
Change inheritance of 'NoNodesAvailableException' to 'ServerErrorResponseException' instead of generic '\Exception'
1 parent 8bde3f3 commit 161558a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Elasticsearch/Common/Exceptions/NoNodesAvailableException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache2
1414
* @link http://elastic.co
1515
*/
16-
class NoNodesAvailableException extends \Exception implements ElasticsearchException
16+
class NoNodesAvailableException extends ServerErrorResponseException implements ElasticsearchException
1717
{
1818
}

0 commit comments

Comments
 (0)