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

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