vendor/shopware/elasticsearch/Exception/ServerNotAvailableException.php line 7

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Shopware\Elasticsearch\Exception;
  3. use Shopware\Core\Framework\ShopwareHttpException;
  4. class ServerNotAvailableException extends ShopwareHttpException
  5. {
  6.     public const CODE 'ELASTICSEARCH_SERVER_NOT_AVAILABLE';
  7.     public function __construct()
  8.     {
  9.         parent::__construct('Elasticsearch server is not available');
  10.     }
  11.     public function getErrorCode(): string
  12.     {
  13.         return self::CODE;
  14.     }
  15. }