vendor/shopware/core/Framework/Uuid/Exception/InvalidUuidException.php line 10

  1. <?php declare(strict_types=1);
  2. namespace Shopware\Core\Framework\Uuid\Exception;
  3. use Shopware\Core\Framework\Log\Package;
  4. use Shopware\Core\Framework\ShopwareHttpException;
  5. use Symfony\Component\HttpFoundation\Response;
  6. #[Package('core')]
  7. class InvalidUuidException extends ShopwareHttpException
  8. {
  9.     public function __construct(string $uuid)
  10.     {
  11.         parent::__construct('Value is not a valid UUID: {{ input }}', ['input' => $uuid]);
  12.     }
  13.     public function getErrorCode(): string
  14.     {
  15.         return 'FRAMEWORK__INVALID_UUID';
  16.     }
  17.     public function getStatusCode(): int
  18.     {
  19.         return Response::HTTP_BAD_REQUEST;
  20.     }
  21. }