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

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. /**
  6.  * @package core
  7.  */
  8. class InvalidUuidException extends ShopwareHttpException
  9. {
  10.     public function __construct(string $uuid)
  11.     {
  12.         parent::__construct('Value is not a valid UUID: {{ input }}', ['input' => $uuid]);
  13.     }
  14.     public function getErrorCode(): string
  15.     {
  16.         return 'FRAMEWORK__INVALID_UUID';
  17.     }
  18.     public function getStatusCode(): int
  19.     {
  20.         return Response::HTTP_BAD_REQUEST;
  21.     }
  22. }