*/ class PartialShardFailureException extends ResponseException { /** * Construct Exception. */ public function __construct(Request $request, Response $response) { parent::__construct($request, $response); $shardsStatistics = $response->getShardsStatistics(); $this->message = JSON::stringify($shardsStatistics); } }