vendor/shopware/core/Content/Product/SalesChannel/Exception/ProductSortingNotFoundException.php line 8

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Shopware\Core\Content\Product\SalesChannel\Exception;
  3. use Shopware\Core\Framework\ShopwareHttpException;
  4. use Symfony\Component\HttpFoundation\Response;
  5. class ProductSortingNotFoundException extends ShopwareHttpException
  6. {
  7.     public function __construct(string $key)
  8.     {
  9.         parent::__construct(
  10.             'Product sorting with key {{ key }} not found.',
  11.             ['key' => $key]
  12.         );
  13.     }
  14.     public function getErrorCode(): string
  15.     {
  16.         return 'CONTENT__PRODUCT_SORTING_NOT_FOUND';
  17.     }
  18.     public function getStatusCode(): int
  19.     {
  20.         return Response::HTTP_NOT_FOUND;
  21.     }
  22. }